[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Could we have elegant version requirement from 5.3 on?
- From: Sean Conner <sean@...>
- Date: Wed, 26 Mar 2014 12:32:03 -0400
It was thus said that the Great Enrico Colombini once stated:
> 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"?
The top line is ignored.
#!/home/spc/apps/lua-5.1/src/lua -e "print('hello')" -