[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Modify Lua Executable for a -51 option
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Sat, 28 Apr 2018 15:23:37 -0300
> So the idea came to me that it would be easier to maintain one copy of lua
> that can run the 5.1 dll/so and the 5.x dll/so based on a command line
Do you mean this?
# usage: lua VERSION other args
echo exec /usr/local/bin/lua$V $@
Typical usage: lua -51 foo.lua arg1 arg2 ... but all command-liine
switches are available.
This assumes the existence of /usr/local/bin/lua-51, lua-52, etc.