[MacPorts] #43798: .cshrc - setenv path not in quotes

MacPorts noreply at macports.org
Fri May 23 07:40:10 PDT 2014


#43798: .cshrc - setenv path not in quotes
---------------------------------+--------------------------------
 Reporter:  joseph.montibello@…  |      Owner:  macports-tickets@…
     Type:  defect               |     Status:  new
 Priority:  Normal               |  Milestone:
Component:  ports                |    Version:  2.2.1
 Keywords:                       |       Port:
---------------------------------+--------------------------------
 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!

-- 
Ticket URL: <https://trac.macports.org/ticket/43798>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list