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

Reply via email to