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: @file handling in Cygwin


Command line length limitations?  Yeah, there's xargs.  I'm not saying
$(cat lsflags) won't do, just that there's some merit in the @ syntax.

But in any case, upon rereading, I see this isn't really what Cheuk is
asking -- the claim is that there's evidence cygwin supports this.  Hmm,
time for the obvious: if the comment really says to use -@file, (i.e.
the dash is not a typo), then I'm not surprised ls @lsflags doesn't do
it.  Have you tried ls -@lsflags ?

stephan();



-----Original Message-----
From: Andrew DeFaria [mailto:ADeFaria@Salira.com] 
Sent: Wednesday, August 14, 2002 2:03 PM
To: cygwin@cygwin.com
Subject: Re: @file handling in Cygwin


Cheng, Cheuk wrote:

> Does anyone know if Cygwin is supposed to handle command syntax like
> "ls @lsflags" where lsflags is a text file containing some command 
> line options for "ls"? I have located a function called insert_file() 
> inside dcrt0.cc which has a comment talking about replacing -@file in 
> the command line with the contents of the file. However, I have tried 
> to enter "ls @lsflags" inside bash running under Cygwin1.dll version 
> 1.3.10 and 1.3.11 but it always returns an error of "No such file or 
> directory".

Why not simply "ls $(cat lsflags)"?




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


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