From f16720db3060a0e9d1f069bd0e7b900809db90cf Mon Sep 17 00:00:00 2001 From: ubq323 Date: Fri, 9 Jun 2023 17:32:22 +0100 Subject: don't override lua path, use -e to load pprint instead --- lr | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lr') diff --git a/lr b/lr index 9158f02..0b5698f 100755 --- a/lr +++ b/lr @@ -1,7 +1,6 @@ #!/bin/sh mdir="$(dirname "$(readlink $0)")" -lpath="$mdir/?.lua;$LUA_PATH" case "$(basename $0)" in ljr) lua=luajit ;; @@ -16,5 +15,5 @@ esac # allow overriding with envvar LUA lua=${LUA:-$lua} -LUA_PATH="$lpath" rlwrap "$lua" "${mdir}/repl.lua" $@ +rlwrap "$lua" -e 'package.loaded.pprint = dofile("'"${mdir}/pprint.lua"'")' "${mdir}/repl.lua" $@ -- cgit v1.2.3