David Kastrup wrote:
Norbert Preining
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.