delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1997/09/09/07:33:51

Date: Tue, 9 Sep 1997 14:32:44 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Oberhumer Markus <k3040e4 AT c210 DOT edvz DOT uni-linz DOT ac DOT at>
cc: djgpp-workers AT delorie DOT com
Subject: Re: c1args.c patches
In-Reply-To: <199709082300.CAA06023@is.elta.co.il>
Message-ID: <Pine.SUN.3.91.970909143152.7143K-100000@is>
MIME-Version: 1.0

On Tue, 9 Sep 1997, Oberhumer Markus wrote:

> I think that response files should be able to parse whatever find,
> ls and dir say. And all three of them print it as i'vebeen.org

This is a problem that is not specific to DJGPP (nor DOS), it happens
on Unix also.  Therefore, I don't think it should have a
DJGPP-specific solution.  Maybe you should bring the problem to the
attention of GNU utils maintainers.  Try posting to
bug-gnu-utils AT prep DOT ai DOT mit DOT edu, which is a mailing list read by the
maintainers of the various utilities.

> It's probably no good idea to make parsing of response files different
> from other arguments.

No, they should be the same.

> Any suggestions ?

With `ls' and `dir', use the -Q switch (it quotes the names, and
should be always used when you intend to pass the listing to some
other program).

For `find', this is a known problem, not specific to DJGPP (see the
docs of Findutils for details).  If you use the list of file names
with `xargs', try the -print0 switch to `find' and then use -0 option
of `xargs'.  If you need to create a response file, pass the list of
names through a Sed script that quotes them.  For example:

      find / -name '*.org' -print | sed -e 's/..*/"&"/' > resp.fil

- Raw text -


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