Opened 10 years ago

Last modified 10 years ago

#43798 closed defect

.cshrc - setenv path not in quotes — at Initial Version

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

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 (0)

Note: See TracTickets for help on using tickets.