X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 	tests=AWL,BAYES_00,SPF_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <4AF0E7FD.3060700@tlinx.org>
Date: Tue, 03 Nov 2009 18:33:33 -0800
From: Linda Walsh <cygwin@tlinx.org>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.22) Gecko/20090605 Lightning/0.9 Thunderbird/2.0.0.22 ThunderBrowse/3.2.6.5 Mnenhy/0.7.6.666
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: [1.7] Undocumented change in accessing by dos drive letters?
References: <19183.9501.7117.656831@consult.pretender> 	 <4AEF316F.2070502@cygwin.com> <416096c60911021258j27d49894kda1f835b3f487a3b@mail.gmail.com>
In-Reply-To: <416096c60911021258j27d49894kda1f835b3f487a3b@mail.gmail.com>
X-Stationery: 0.4.10
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Andy Koppe wrote:
> C: and C:\ aren't the same thing in DOS/cmd.exe. C: means the current
> directory of the C drive, whereas C:\ means the root directory of the
> C drive. Within each cmd.exe session, each drive has its own current
> directory.
---
	Right.  That's a cmd.exe-ism  -- As Christofpher F. says,
it's not been true in Cygwin in a long time (I don't remember it being
true, ever, but I never tried using it to see if it was supported).

	If you are in a 'bash' shell -- bash doesn't maintain
an internal, drive-specific "CWD", for each DOS drive -- it just
has 1 CWD(CurrentWorkingDir) as there is no concept of 'drivers'.  
C:\\, works due to path mangling -- likely when bash sees it, it's
already "[/YourCygPrefixHere]/c/ or root depending on your mount points.

	If "C:" worked it could be confusing, Unless, "C" was your
*only* drive -- then people might forget and think that C: meant
your CWD on your "current drive"...but really, there's no current 
drive, and I'm not sure cygwin should inherently support such a vague
syntax.  What would it mean in a POSIX context?  Would it mean
"/c/$PWD"  or "/c/", or (for /c/ == '/' i.e. c is your root partition),
would it mean '/' or $PWD?  

-l

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

