[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Could we have elegant version requirement from 5.3 on?
- From: steve donovan <steve.j.donovan@...>
- Date: Wed, 26 Mar 2014 10:28:34 +0200
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.