blob: 0b5698f40abc8a9d9702a2e05c3130601d4bf4b1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/bin/sh
mdir="$(dirname "$(readlink $0)")"
case "$(basename $0)" in
ljr) lua=luajit ;;
lr) lua=lua ;;
l1r) lua=lua5.1 ;;
l2r) lua=lua5.2 ;;
l3r) lua=lua5.3 ;;
l4r) lua=lua5.4 ;;
*) lua=lua ;;
esac
# allow overriding with envvar LUA
lua=${LUA:-$lua}
rlwrap "$lua" -e 'package.loaded.pprint = dofile("'"${mdir}/pprint.lua"'")' "${mdir}/repl.lua" $@
|