Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com From: Chris Faylor Date: Tue, 17 Oct 2000 11:29:21 -0400 To: "'cygwin AT sources DOT redhat DOT com'" Subject: Re: Treatment of x:path again Message-ID: <20001017112921.C9406@cygnus.com> Reply-To: cygwin AT sources DOT redhat DOT com Mail-Followup-To: "'cygwin AT sources DOT redhat DOT com'" References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.6i In-Reply-To: ; from smueller@microsoft.com on Mon, Oct 16, 2000 at 06:45:20PM -0700 On Mon, Oct 16, 2000 at 06:45:20PM -0700, Stephan Mueller wrote: >While it's true that you can ask cmd.exe for the current directory by >using something like echo %CD%, note that this is a pseudo-variable at >best. It's not found in older versions of cmd.exe (NT4SP3 or >thereabouts being required as a minimum) and it's clearly not a real >variable: set without arguments won't list it, and set cd=asdf will >simply set a real variable to the value asdf, and will have no effect >on your current directory. The behavior I'm referring to has been around since NT 3.5, at least. cmd.exe stores something like: =D:=D:\FOO in the environment. It is a "real" environment variable in that it is retrievable via GetEnvironmentVariable but it is odd in that the variable name begins with '='. You also don't see this when you type 'set'. cgf >Or are you referring to something else? > >stephan(); > > >-----Original Message----- >From: Chris Faylor [mailto:cgf AT cygnus DOT com] >Sent: Monday, October 16, 2000 6:37 PM >To: cygwin AT sources DOT redhat DOT com >Subject: Re: Treatment of x:path again > > >On Tue, Oct 17, 2000 at 03:31:19AM +0200, Lassi A. Tuura wrote: >>|> How would you suggest having something be 'relative to the current path' >>|> in cygwin, given the /cygdrive method of doing things? cygwin has never >>|> kept track of the current directory of other drives. >> >>FWIW, it seems this isn't even possible under Win32. Based on MSDN docs >>it sounds like Win32 maintains only one current directory and really >>knows nothing about disk drives in that context. It is only cmd.exe >>that maintains an illusion of a current directory for all the drives on >>Windows NT and 2000. > >NT stores the current directory in environment variables, actually. Windows >9x >seems to store the information at the OS level. > >cgf > >-- >Want to unsubscribe from this list? >Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com > >-- >Want to unsubscribe from this list? >Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com -- cgf AT cygnus DOT com Cygnus Solutions, a Red Hat company http://sourceware.cygnus.com/ http://www.redhat.com/ -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com