delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/05/23/19:30:38

X-Spam-Check-By: sourceware.org
Message-ID: <ba40711f0705231630g37380563u35375ab135cba493@mail.gmail.com>
Date: Wed, 23 May 2007 19:30:10 -0400
From: "Lev Bishop" <lev DOT bishop AT gmail DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: How to uniformly point to the root of a drive?
In-Reply-To: <ba40711f0705231547r7ece3a9ao202e5c54693e461b@mail.gmail.com>
MIME-Version: 1.0
References: <20070521041542 DOT GA23520 AT ednor DOT casa DOT cgf DOT cx> <BAY125-F20C45F9AA3619BFE68C8CDB5370 AT phx DOT gbl> <20070521142944 DOT GC6003 AT calimero DOT vinschen DOT de> <004301c79bb6$c8c70db0$2e08a8c0 AT CAM DOT ARTIMI DOT COM> <20070521152515 DOT GD6003 AT calimero DOT vinschen DOT de> <ba40711f0705210855p1feb72bo1684c4398cdfead8 AT mail DOT gmail DOT com> <20070521164542 DOT GF6003 AT calimero DOT vinschen DOT de> <20070523165335 DOT GQ6003 AT calimero DOT vinschen DOT de> <ba40711f0705231547r7ece3a9ao202e5c54693e461b AT mail DOT gmail DOT com>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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

On 5/23/07, Lev Bishop <lev DOT bishop AT gmail DOT com> wrote:
> On 5/23/07, Corinna Vinschen <corinna-cygwin AT cygwin DOT com> wrote:
> > Done.   The rules have changed slightly, but should be consistent now.
> > The option handling when reading from files (-o -f ...) is now identical
> > to the option handling from the the command line, except that the -o and
> > -f options are invalid when reading from a file.
>
> Now, one can't do, eg,  "cygpath -w -S" to get the system directory in
> windows format (or even "cygpath -u -S" to explicitly ask for it in
> unix form. Previously these worked. Is that intentional?
>
> "cygpath -f" seems to ignore commandline options, eg to convert to
> windows format:
> $ cygpath -w -f - <<< /usr/bin/bash
> /usr/bin/bash
>
> "cygpath -of" seems to default to windows format rather than unix
> format, except for "system directory" options:
>
>  $ /bin/echo -e "/usr/bin/bash\n-P" | cygpath -of -
> C:\cygwin\bin\bash
> /cygdrive/c/Documents and Settings/Lev/Start Menu/Programs

Also, why do you have it so that -s is not just a synonym for -d, and
why doesn't -l force -w? There seems to be no advantage to forcing the
user to specify an additional flag.

Lev

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019