[MacPorts] #43798: .cshrc - setenv path not in quotes
MacPorts
noreply at macports.org
Fri May 23 07:47:57 PDT 2014
#43798: .cshrc - setenv path not in quotes
----------------------------------+--------------------------------
Reporter: joseph.montibello@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: base | Version: 2.2.1
Resolution: | Keywords:
Port: |
----------------------------------+--------------------------------
Changes (by mf2k@…):
* cc: joseph.montibello@… (removed)
* component: ports => base
Old description:
> Hi,
>
> I'm using macports on Mavericks, with tcsh as my shell. I noticed that
> upon opening my terminal screen, I was seeing "setenv: Too many
> arguments." I looked at my .cshrc file and saw this:
>
> # MacPorts Installer addition on 2014-05-22_at_14:46:03: adding an
> appropriate PATH variable for use with MacPorts.
> setenv PATH /opt/local/bin:/opt/local/sbin:$PATH
> # Finished adapting your PATH environment variable for use with MacPorts.
>
> I think this setenv was causing the problem because my local $PATH
> setting has escaped space characters in it, and the whole thing is
> enclosed in quotes. I think this problem would be solved if macports
> would simply wrap its setenv PATH in quotes:
>
> setenv PATH "/opt/local/bin:/opt/local/sbin:$PATH"
>
> Note that I'm not a real programmer so I may not know what I'm talking
> about, but I thought if I was right this might help someone else.
>
> Thanks for your work on macports!
New description:
Hi,
I'm using macports on Mavericks, with tcsh as my shell. I noticed that
upon opening my terminal screen, I was seeing "setenv: Too many
arguments." I looked at my .cshrc file and saw this:
{{{
# MacPorts Installer addition on 2014-05-22_at_14:46:03: adding an
appropriate PATH variable for use with MacPorts.
setenv PATH /opt/local/bin:/opt/local/sbin:$PATH
# Finished adapting your PATH environment variable for use with MacPorts.
}}}
I think this setenv was causing the problem because my local $PATH setting
has escaped space characters in it, and the whole thing is enclosed in
quotes. I think this problem would be solved if macports would simply wrap
its setenv PATH in quotes:
{{{
setenv PATH "/opt/local/bin:/opt/local/sbin:$PATH"
}}}
Note that I'm not a real programmer so I may not know what I'm talking
about, but I thought if I was right this might help someone else.
Thanks for your work on macports!
--
Comment:
In the future, please use WikiFormatting. As reporter, you do not need to
Cc yourself.
--
Ticket URL: <https://trac.macports.org/ticket/43798#comment:2>
MacPorts <http://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list