Passing input files with @

Marco Trudel mtrudel@gmx.ch
Wed Nov 8 08:29:00 GMT 2006


Andrew Haley wrote:
> 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.

Thanks for the hint, I was looking in the completely wrong place. I
tracked it down to this problem:
gcj --main=HelloWorld -o HelloWorld @source.txt # doesn't work
gcj --main=HelloWorld -oHelloWorld @source.txt # works
I will add a bug report...
Marco


More information about the Java mailing list

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