delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/06/23/17:15:29

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-ID: <CF29360CADE8D31196E200508B8B88B63581C0@UsaWvMS01.opbu.xerox.com>
From: "Tarr, Stephen F" <stephen DOT f DOT tarr AT opbu DOT xerox DOT com>
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
Date: Fri, 23 Jun 2000 14:09:10 -0700
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2448.0)

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 AT icon-gmbh DOT de]
> Sent:	Friday, June 23, 2000 12:58 PM
> To:	'Tarr, Stephen F'; 'cygwin AT sourceware DOT cygnus DOT 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 AT icon-gmbh DOT de)
> 
> > -----Original Message-----
> > From:	Tarr, Stephen F [SMTP:stephen DOT f DOT tarr AT opbu DOT xerox DOT com]
> > Sent:	Friday, June 23, 2000 21:47
> > To:	'cygwin AT sourceware DOT cygnus DOT 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 AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019