This is the mail archive of the
mailing list for the Cygwin project.
Re: PATH and SystemRoot oddity
- From: Igor Pechtchanski <pechtcha at cs dot nyu dot edu>
- To: Luke Kendall <luke dot kendall at cisra dot canon dot com dot au>
- Cc: cygwin at cygwin dot com
- Date: Wed, 1 Dec 2004 15:02:57 -0500 (EST)
- Subject: Re: PATH and SystemRoot oddity
- References: <20041201003317.6835784C99@pessard.research.canon.com.au>
- Reply-to: cygwin at cygwin dot com
On Wed, 1 Dec 2004, Luke Kendall wrote:
> On 26 Nov, Igor Pechtchanski wrote:
> > On Fri, 26 Nov 2004, Luke Kendall wrote:
> > > I see that by default PATH includes some entries like
> > > %SystemRoot%/System32
> > >
> > > I also note that $SystemRoot is undefined, yet $SYSTEMROOT contains
> > > the expected C:\WINDOWS value.
> > >
> > > This of course causes problems. Would a backslash-style path work
> > > correctly if it were properly interpolated into the PATH? Is the %
> > > notation special magic for Cygwin to handle DOS-isms?
> > >
> > > The case variance may be of interest, in that case.
> > The case variance is a red herring.
> Could you explain some more? I was thinking that if SystemRoot but
> SYSTEMROOT was, it might be relevant.
The interpolation of the %...% variables into REG_MULTI_SZ values happens
on the Windows level, before Cygwin ever sees them. Windows treats these
|\ _,,,---,,_ email@example.com
ZZZzz /,`.-'`' -. ;-;;,_ firstname.lastname@example.org
|,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D.
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
"The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html