lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


$ luajit -e 'local f = io.lines("files.lua"); while f() do end'
luajit: (command line):1: bad argument #1 to 'f' (FILE* expected, got no value)
stack traceback:
        [C]: in function 'f'
        (command line):1: in main chunk
        [C]: ?
$ lua -e 'local f = io.lines("files.lua"); while f() do end'
$ echo $?
0


Tony.
-- 
f.anthony.n.finch  <dot@dotat.at>  http://dotat.at/
GERMAN BIGHT HUMBER: SOUTHWEST 5 TO 7. MODERATE OR ROUGH. SQUALLY SHOWERS.
MODERATE OR GOOD.