This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
RE: shell back quote expansion problem
- To: "'Heribert Dahms'" <heribert_dahms at icon-gmbh dot de>, "'Tarr, Stephen F'" <stephen dot f dot tarr at opbu dot xerox dot com>, "'cygwin at sourceware dot cygnus dot com'" <cygwin at sourceware dot cygnus dot com>
- Subject: RE: shell back quote expansion problem
- From: "Tarr, Stephen F" <stephen dot f dot tarr at opbu dot xerox dot com>
- Date: Fri, 23 Jun 2000 14:09:10 -0700
The first of these failed, the second one worked. I don't understand how
writing the
output into a file and reading it back in with 'cat' is removing the
carriage returns, but
that's clearly the key to making the shell happy.
-ST
> -----Original Message-----
> From: Heribert Dahms [SMTP:heribert_dahms@icon-gmbh.de]
> Sent: Friday, June 23, 2000 12:58 PM
> To: 'Tarr, Stephen F'; 'cygwin@sourceware.cygnus.com'
> Subject: RE: shell back quote expansion problem
>
> Hi Steve,
>
> try (untested): ls -l `cmd /c dir /b *.h | cat`
> or ls -l `cmd /c dir /b *.h | tr -d '\r'`
>
> Bye, Heribert (heribert_dahms@icon-gmbh.de)
>
> > -----Original Message-----
> > From: Tarr, Stephen F [SMTP:stephen.f.tarr@opbu.xerox.com]
> > Sent: Friday, June 23, 2000 21:47
> > To: 'cygwin@sourceware.cygnus.com'
> > Subject: shell back quote expansion problem
> >
> > [Heribert] [snip]
> >
> > 3. back quote expansion fails with output from an MS-DOS command
> >
> > ls -l `cmd /c dir /b *.h`
> >
> > [Heribert] [snip]
> >
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com