lua-users home
lua-l archive

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


On 03/26/2014 03:57 PM, Sean Conner 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 ...



Well, this is due to the way how the kernel parses and interprets the she-bang line.

see [1] and [2].


--------------------------
[1] http://mail-index.netbsd.org/netbsd-users/2008/11/09/msg002388.html
[2] http://lkml.org/lkml/2004/2/16/74