Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Fri, 26 Nov 2004 15:52:59 -0500 (EST) From: Igor Pechtchanski Reply-To: cygwin AT cygwin DOT com To: Luke Kendall cc: cygwin AT cygwin DOT com Subject: Re: PATH and SystemRoot oddity In-Reply-To: <20041126064717.0A1A4837CA@pessard.research.canon.com.au> Message-ID: References: <20041126064717 DOT 0A1A4837CA AT pessard DOT research DOT canon DOT com DOT au> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Scanned-By: MIMEDefang 2.39 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. Also, Cygwin doesn't understand the %...% notation. OTOH, you're not supposed to be seeing these entries in the actual value of your PATH, either in Windows or in Cygwin. Such entries are usually caused by the wrong type assigned to the PATH value in the registry (REG_SZ instead of REG_EXPAND_SZ). Some buggy installers change the type of the PATH registry entry. You need to change it back, so that strings like %SystemRoot% will be automatically expanded by Windows before Cygwin ever sees them. HTH, Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT 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/