how do you create an usable path variable with a space in it?
Jerome Fong
jfong@successmetricsinc.com
Thu Mar 8 22:42:00 GMT 2007
Thanks Brian,
It works now. I thought I went through that, but apparently I didn't it
wrong.
thanks,
Jerome
Brian Dessent wrote:
> Jerome Fong wrote:
>
>> export JAVA_HOME='/cygdrive/c/Program\ Files/Java/jdk1.5.0_10'
>
> This is wrong. Either backslash-escape the space or use quotes, but not
> both. You are embedding an actual backslash in the value, which is not
> what you want. The purpose of the backslash is not to exist in the
> value of the variable, but to tell the shell not to treat the space as
> separating two arguments.
>
> export FOO="some string"
> export FOO=some\ string
>
> Brian
>
--
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/
More information about the Cygwin
mailing list