This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [1.7] Undocumented change in accessing by dos drive letters?

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
	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?


Problem reports:
Unsubscribe info:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]