[Dev-luatex] os.spawn and argv[1] with sapces

Hans Hagen pragma at wxs.nl
Mon Nov 23 20:47:07 CET 2009


T T wrote:
> 2009/11/23 Hans Hagen <pragma at wxs.nl>:
>> arg = {
>>    "dir",
>>    "bar",
>>    '"foo bar"',
>> }
>>
>> os.spawn(arg)
>>
>> works ok, so without arg[0]
> 
> Yes, but your arg[1] has no spaces in it. Try running some program
> under %ProgramFiles% or other path with spaces.

hm, hard to find one, but

  "c:/Program Files/WinRAR/rar.exe",

as arg[1] runs rar

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------


More information about the dev-luatex mailing list