Passing input files with @

Andrew Haley aph@redhat.com
Tue Nov 7 19:48:00 GMT 2006


Marco Trudel writes:
 > Andrew Haley wrote:
 > > Marco Trudel writes:
 > > > Hello list
 > > > 
 > > > Following http://gcc.gnu.org/onlinedocs/gcj/Input-and-output-files.html, 
 > > > I can specify the source with a file containing a whitespace-separated 
 > > > list of input file names. (gcj --main=Foo @files.list).
 > > > How do I escape spaces in filenames? I'm unable to find the source file 
 > > > that handles it, no common way like using " or \ works and the 
 > > > documentation doesn't say anything about that...
 > > 
 > > I have no idea. I am certain that no-one has ever attempted it.
 > 
 > Actually I asked in a bad way...
 > I assumed too that this has to be fixed in the source, but I don't know 
 > where to look for it. Can someone point me in the right direction?
buildargv() in libiberty/argv.c. It looks to me like \ works
perfectly well as an escape.
It might be that jc1 doesn't cope with spaces in dirnames, but that's
a whole 'nother problem.
Andrew.


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /