lua-users home
lua-l archive

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


On Wed, Mar 26, 2014 at 9:57 AM, Sean Conner <sean@conman.org> wrote:
>
>   I thought something like:
>
> #!/usr/bin/env lua -e "if _VERSION ~= 'Lua 5.3' then print('bad lua') return end" -
>
> would work, but apparently not ...

But

lua -e "if _VERSION ~= 'Lua 5.3' then print('bad lua'); os.exit(1) end" -

does work, at least on Windows.