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 @


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.


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