Opened 10 years ago
Last modified 10 years ago
#43798 closed defect
.cshrc - setenv path not in quotes — at Version 2
Reported by: | joseph.montibello@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | MacPorts 2.3.1 |
Component: | base | Version: | 2.2.1 |
Keywords: | Cc: | ||
Port: |
Description (last modified by mf2k (Frank Schima))
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!
Change History (2)
comment:1 Changed 10 years ago by joseph.montibello@…
Cc: | joseph.montibello@… added |
---|
comment:2 Changed 10 years ago by mf2k (Frank Schima)
Cc: | joseph.montibello@… removed |
---|---|
Component: | ports → base |
Description: | modified (diff) |
In the future, please use WikiFormatting. As reporter, you do not need to Cc yourself.
Cc Me!