Date: Tue, 9 Sep 1997 14:32:44 +0300 (IDT) From: Eli Zaretskii To: Oberhumer Markus cc: djgpp-workers AT delorie DOT com Subject: Re: c1args.c patches In-Reply-To: <199709082300.CAA06023@is.elta.co.il> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk 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