delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
X-envelope-info: | <rschulz AT sonic DOT net> |
Message-Id: | <5.2.1.1.2.20030515121945.0372a668@pop.sonic.net> |
X-Sender: | rschulz AT pop DOT sonic DOT net |
Date: | Thu, 15 May 2003 12:20:41 -0700 |
To: | cygwin AT cygwin DOT com |
From: | Randall R Schulz <rschulz AT sonic DOT net> |
Subject: | Re: cygpath : minor inconsistency in output |
In-Reply-To: | <000701c31b13$d6731260$c99ac250@leper> |
Mime-Version: | 1.0 |
Fergus, D: is not the same as D:/. The former is the current default directory on the D: drive. The latter is the root directory on the D: drive. Randall Schulz At 11:57 2003-05-15, fergus AT bonhard DOT uklinux DOT net wrote: >Assuming a conventional setup, then > > cygpath -m / > >returns "c:/Cygwin". But if Cygwin is mounted at the root of a drive as in > > mount "d:" "/" >OR > mount "d:/" "/" > >then cygpath -m / returns "d:/". Note the trailing slash. > >This is a terribly minor inconsistency and can easily be worked around (I >need to use the output of cygpath in an application) but (a) am I correct to >identify this mismatch in output as inconsistent and (b) would it be a pain >with many nasty consequences for loads of people if in some future >distribution it was made evident through a trailing slash that the output of >cygpath is always a directory? (So, in the particular example outlined, >here, you'd get "c:/Cygwin/"). > >Fergus -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |