This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Spaces in Environment Variables


If I set environment variables to paths that have
spaces in them they don't work right with common shell
commands. Does anybody know a work around for this?

For example:

--SHELL--------------------------------------------
$ PF="/cygdrive/c/Program\ Files"
$ export PF
$ cd $PF
: cd: /cygdrive/c/Program\: No such file or directory
$ ls $PF
ls: /cygdrive/c/Program\: No such file or directory
ls: Files: No such file or directory
--SHELL--------------------------------------------


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]