This is the mail archive of the java@gcc.gnu.org mailing list for the Java 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: Passing input files with @


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]