www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/01/29/01:31:32

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
Message-Id: <5.2.0.9.2.20030128222650.0a9174b8@pop3.cris.com>
X-Sender: rrschulz AT pop3 DOT cris DOT com
Date: Tue, 28 Jan 2003 22:32:49 -0800
To: cygwin AT cygwin DOT com, Soren A <soren_andersen AT fastmail DOT fm>
From: Randall R Schulz <rrschulz AT cris DOT com>
Subject: Re: cygwin path problems
Cc: cygwin AT cygwin DOT com
In-Reply-To: <Pine.GSO.4.44.0301281924390.26400-100000@slinky.cs.nyu.edu
>
References: <Xns9311AA1C68C0Fsoren1Gmane AT 80 DOT 91 DOT 224 DOT 249>
Mime-Version: 1.0

Igor, Soren,

At 16:36 2003-01-28, Igor Pechtchanski wrote:
>On Tue, 28 Jan 2003, Soren A wrote:
>
> > ...
> >
> > Or re-invent that wheel, your choice ;-)
> >
> >   Soren A
>
>Why, one doesn't have to be a "cygpath" guru at all!  A little judicious
>application of sed, and you can turn a space-separated path into a
>colon-separated one. Which reduces the problem to the one already
>solved... ;-)
>
>Seriously, though, you could use something like
>     "`/bin/ls /cdv/D/goodies/babe*.jpg | cygpath -w -f -`"
>as the argument.  This should expand all the files.

Did you try that? It doesn't work for me. For one thing, I see no 
indication in cygpath's "--help" output that an argument of "-" tells 
it to read a name or names to convert from standard input. Nor will 
cygpath process multiple files (on the command line) in a single 
invocation (as you seem to suggest below).


>It would certainly be a good idea to add multiple filename capability to
>cygpath. If I have time over the next week, I'll submit a patch.
>
>     Igor


And for this case and many similarly simple ones, "tr" will do.

Randall Schulz 


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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