[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Could we have elegant version requirement from 5.3 on?
- From: Enrico Colombini <erix@...>
- Date: Wed, 26 Mar 2014 10:03:33 +0100
On 26/03/2014 8.57, Sean Conner wrote:
#!/usr/bin/env lua -e "if _VERSION ~= 'Lua 5.3' then print('bad lua') return end" -
would work, but apparently not ...
What happens if the script is launched with a different version of Lua
from the one in the path, e.g. it is launched with "test/lua53
script.lua" when "/usr/bin/env lua" launches "lua52"?