PATH and SystemRoot oddity

Igor Pechtchanski pechtcha@cs.nyu.edu
Wed Dec 1 20:04:00 GMT 2004


On Wed, 1 Dec 2004, Luke Kendall wrote:
> On 26 Nov, Igor Pechtchanski wrote:
> > On 2004年11月26日, 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
variables case-insensitively.
HTH,
	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!
"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
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/


More information about the Cygwin mailing list

AltStyle によって変換されたページ (->オリジナル) /