The init.csh script fails if the PATH variable contains a directory  
with an embedded space. This is true when running on a Macintosh, Mac  
OS X 10.5, and you use the VMware utility vmrun which requires the  
directory "/Library/Application Support/VMware Fusion" (containing 2  
spaces) to be in your PATH. The problem lies in the alias definitions  
of append_path and prepend_path. Below is are these two aliases  
modified to work with spaces in the PATH. I have not updated the init  
scripts for other shells but I believe they have the same problem.

# add to end of path
alias append_path 'if ( "$\!:1" !~ "\!:2\:*" && "$\!:1" !~ "*\:\!: 
2\:*" && "$\!:1" !~ "*\:\!:2" && "$\!:1" !~ "\!:2" ) setenv \!:1 "${\!: 
1}\:\!:2"'
# add to front of path
alias prepend_path 'if ( "$\!:1" !~ "\!:2\:*" && "$\!:1" !~ "*\:\!: 
2\:*" && "$\!:1" !~ "*\:\!:2" && "$\!:1" !~ "\!:2" ) setenv \!:1 "\!: 
2\:${\!:1}"; if ( "$\!:1" !~ "\!:2\:*" ) setenv \!:1 "\!:2"`echo \:$ 
{\!:1} | /usr/bin/sed -e s%^\!:2\:%% -e s%:\!:2\:%:%g -e s%:\!:2\$%%`'


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Fink-devel mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.devel

Reply via email to