[Dev-luatex] again problems ..., os.spawn and spaces in names

Taco Hoekwater taco at elvenkind.com
Fri Feb 8 15:27:57 CET 2008



David Kastrup wrote:
> Norbert Preining <preining at logic.at> writes:
> 
>> Hi Taco,
>>
>> I have again a strange thing happening:
>>
>> 	for i,v in pairs(command) do print("DEBUG: ",i,v) end
>> 	ret = os.spawn(command)
>>
>> gives me:
>> 	DEBUG:	1	C:/tl test/2008/tlpkg/tlperl/bin/perl.exe
>> 	DEBUG:	2	c:/tl test/2008/texmf/scripts/texlive/generate-updmap.pl
>> Can't open perl script "test/2008/tlpkg/tlperl/bin/perl.exe": No such file or directory
>>
>> Do you have any idea where this is coming from? It seems perl is telling
>> me something about opening itself??? I am a bit surprised about that.
>>
>> Do you have any suggestion? Thanks!
> 
> Isn't that obvious?  A pseudo command line is created and called, and
> Perl splits it at the first space, disregarding the quoting.

That's why I thought. You can try adding extra quote characters
around all arguments with spaces in them, has says that has a
tendency to help.



More information about the dev-luatex mailing list