This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: cygwin path problems


Igor,

At 07:05 2003-01-29, Igor Pechtchanski wrote:
Randall,

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 -`
C:\cygwin\bin\chgrp.exe C:\cygwin\bin\chmod.exe C:\cygwin\bin\chown.exe C:\cygwin\bin\chroot.exe

...

> 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
cygpath [-ADHPSW]
[snip]
Other options:
-f, --file FILE read FILE for input; use - to read from STDIN
^^^^^^^^^^^^^^^^^^^^^^^^^
-o, --option read options from FILE as well (for use with --file)
[snip]
Sorry. I missed the "-f" option, that's why I just got a hyphen in the cygcheck output.


...

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

We all have our favorite tools ;-)

    Igor

Randy

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]