[Dev-luatex] running scripts from UNC paths

T T t34www at googlemail.com
Thu Apr 15 15:57:26 CEST 2010


I've noticed an odd thing with texlua on Windows, here's the code and
output illistrating it. The test script arg0test.lua is a simple

  print(unpack(arg, 0))

Call with no arguments (note the conversion of \ to /):

  $ texlua H:\DEV\scratch\arg0test.lua

Call with arguments (no conversion this time):

  $ texlua H:\DEV\scratch\arg0test.lua arg1
  H:\DEV\scratch\arg0test.lua     arg1

Call with full UNC path (the same behaviour for call with arguments):

  $ texlua \\.\H:\DEV\scratch\arg0test.lua
  No script file given

There is something weird going on with this conversion of \ to /, but
this not so important.  What I don't understand is why it fails for
UNC path (there is no problem to do for example
dofile([[\\.\H:\DEV\scratch\arg0test.lua]]) from within the script).



More information about the dev-luatex mailing list