[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- 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
> switch
Do you mean this?
#!/bin/sh
# usage: lua VERSION other args
V=$1
shift
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.