This is the mail archive of the
mailing list for the Cygwin project.
Re: cygwin path problems
- From: Randall R Schulz <rrschulz at cris dot com>
- To: cygwin at cygwin dot com, Soren A <soren_andersen at fastmail dot fm>
- Cc: cygwin at cygwin dot com
- Date: Tue, 28 Jan 2003 22:32:49 -0800
- Subject: Re: cygwin path problems
- References: <Xns9311AA1C68C0Fsoren1Gmane@184.108.40.206>
At 16:36 2003-01-28, Igor Pechtchanski wrote:
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).
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
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.
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.
And for this case and many similarly simple ones, "tr" will do.
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html