Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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.20030129082036.01d96138@pop3.cris.com> X-Sender: rrschulz AT pop3 DOT cris DOT com Date: Wed, 29 Jan 2003 08:24:11 -0800 To: cygwin AT cygwin DOT com From: Randall R Schulz Subject: Re: cygwin path problems In-Reply-To: References: <5 DOT 2 DOT 0 DOT 9 DOT 2 DOT 20030128222650 DOT 0a9174b8 AT pop3 DOT cris DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed 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/