Re: [Dev-luatex] running scripts from UNC paths

2010-04-20 Thread T T
On 15 April 2010 17:46, T T wrote: > On 15 April 2010 17:18, Taco Hoekwater wrote: >> T T wrote: >>> >>> On 15 April 2010 16:34, Taco Hoekwater wrote: Or any other older version, I'm sure. All commandline related stuff is in luainit.w, I think. >>> >>> I probably need to svn up, b

Re: [Dev-luatex] running scripts from UNC paths

2010-04-15 Thread T T
On 15 April 2010 17:18, Taco Hoekwater wrote: > T T wrote: >> >> On 15 April 2010 16:34, Taco Hoekwater wrote: >>> >>> Or any other older version, I'm sure. All commandline related stuff >>> is in luainit.w, I think. >> >> I probably need to svn up, because I can only find luainit.c, no >> luaini

Re: [Dev-luatex] running scripts from UNC paths

2010-04-15 Thread Taco Hoekwater
T T wrote: On 15 April 2010 16:34, Taco Hoekwater wrote: Or any other older version, I'm sure. All commandline related stuff is in luainit.w, I think. I probably need to svn up, because I can only find luainit.c, no luainit.w. And now I suddenly see what is going wrong: your backslash is in

Re: [Dev-luatex] running scripts from UNC paths

2010-04-15 Thread T T
On 15 April 2010 16:34, Taco Hoekwater wrote: > > Or any other older version, I'm sure. All commandline related stuff > is in luainit.w, I think. I probably need to svn up, because I can only find luainit.c, no luainit.w. > And now I suddenly see what is going wrong: your backslash is > intercep

Re: [Dev-luatex] running scripts from UNC paths

2010-04-15 Thread Taco Hoekwater
T T wrote: On 15 April 2010 15:31, Taco Hoekwater wrote: T T wrote: $ texlua \\.\H:\DEV\scratch\arg0test.lua No script file given There is a stat() test in luainit.w (the is_readable macro) which probably fails for UNC files. I can try a patch, but it would be better if a true windows user

Re: [Dev-luatex] running scripts from UNC paths

2010-04-15 Thread T T
On 15 April 2010 15:31, Taco Hoekwater wrote: > T T wrote: >> >>  $ texlua \\.\H:\DEV\scratch\arg0test.lua >>  No script file given > > There is a stat() test in luainit.w (the is_readable macro) > which probably fails for UNC files. I can try a patch, but it > would be better if a true windows us

Re: [Dev-luatex] running scripts from UNC paths

2010-04-15 Thread T T
On 15 April 2010 15:09, Hans Hagen wrote: > On 15-4-2010 3:57, T T wrote: > >>   $ texlua \\.\H:\DEV\scratch\arg0test.lua >>   No script file given > > > puting something in front of a drive specification is wrong anyway i think, > just try > > dir ".\c:" It should be dir "\\.\c:\" and it works j

Re: [Dev-luatex] running scripts from UNC paths

2010-04-15 Thread Taco Hoekwater
T T wrote: $ texlua \\.\H:\DEV\scratch\arg0test.lua No script file given There is a stat() test in luainit.w (the is_readable macro) which probably fails for UNC files. I can try a patch, but it would be better if a true windows user would do so (I can guess but not test). Best wishes, Ta

Re: [Dev-luatex] running scripts from UNC paths

2010-04-15 Thread Hans Hagen
On 15-4-2010 3:57, T T wrote: $ texlua \\.\H:\DEV\scratch\arg0test.lua No script file given puting something in front of a drive specification is wrong anyway i think, just try dir ".\c:" -

[Dev-luatex] running scripts from UNC paths

2010-04-15 Thread T T
Hi, 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 one-liner: print(unpack(arg, 0)) Call with no arguments (note the conversion of \ to /): $ texlua H:\DEV\scratch\arg0test.lua H:/DEV/scratch/arg0test.