This is the mail archive of the
cygwin
mailing list for the Cygwin project.
RE: How to set a variable with a space in the value?
- From: Igor Pechtchanski <pechtcha at cs dot nyu dot edu>
- To: Reid Thompson <Reid dot Thompson at ateb dot com>
- Cc: Ashish dot Srivastava at med dot va dot gov, cygwin at cygwin dot com
- Date: Tue, 30 Aug 2005 14:51:36 -0400 (EDT)
- Subject: RE: How to set a variable with a space in the value?
- References: <F71C0DC6B4FD3648815AAA7F969E35290194EB92@sr002-2kexc.ateb.com>
- Reply-to: cygwin at cygwin dot com
On Tue, 30 Aug 2005, Reid Thompson wrote:
> Ashish.Srivastava@XXX.XX.XXX wrote:
<http://cygwin.com/acronyms/#PCYMTNQREAIYR>. Thanks.
> > Hi,
> > I have a JDK installed in c:\Java SDK directory. I am
> > trying to export the JAVA_HOME in cygwin but it seems is crancking
> > out on the space.
> >
> > export JAVA_HOME=c:\Java\\ SDK
> > export JAVA_HOME=c:\"Java SDK\" and,
> > export JAVA_HOME="c:/Java SDK/"
> >
> > all fails. Please help!
> >
> > Thnx,
> > -Ashish
>
> try
> ln -s C:\\Java\ SDK /java
>
> export JAVA_HOME=/java
Ain't gonna work (and neither will mounts). JAVA_HOME is usually used by
non-Cygwin programs, and those don't know about either symlinks or mounts.
Junctions (directory reparse points) do work, however.
Igor
--
http://cs.nyu.edu/~pechtcha/
|\ _,,,---,,_ pechtcha@cs.nyu.edu
ZZZzz /,`.-'`' -. ;-;;,_ igor@watson.ibm.com
|,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D.
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
If there's any real truth it's that the entire multidimensional infinity
of the Universe is almost certainly being run by a bunch of maniacs. /DA
--
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/