This is the mail archive of the
mailing list for the Cygwin project.
Re: cygwin path problems
At 07:05 2003-01-29, Igor Pechtchanski wrote:
Sorry. I missed the "-f" option, that's why I just got a hyphen in the
On Tue, 28 Jan 2003, Randall R Schulz wrote:
> Igor, Soren,
> >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.
Yes, I did try it. I think the problem might be with the extra quotes
around the `` construct, and there are issues with quoting paths with
spaces properly, but on the whole it does work:
$ echo `/bin/ls /bin/ch* | cygpath -w -f -`
> 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.
$ cygpath --help
Usage: cygpath (-d|-m|-u|-w|-t TYPE) [-c HANDLE] [-f FILE] [options] NAME
-f, --file FILE read FILE for input; use - to read from STDIN
-o, --option read options from FILE as well (for use with --file)
> And for this case and many similarly simple ones, "tr" will do.
> Randall Schulz
We all have our favorite tools ;-)
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html