=== modified file 'sbin/ns_run' --- old/sbin/ns_run 2021-12-16 16:39:03 +0000 +++ new/sbin/ns_run 2021-12-16 15:21:31 +0000 @@ -34,11 +34,11 @@ getpid PID ifelse { importas -D "" NS_NO_PID1 NS_NO_PID1 - importas -i PID PID - test -z ${NS_NO_PID1} -a 1 -ne $PID + if -x 0 { test -z $NS_NO_PID1 } + importas -i PID PID test 1 -ne $PID } { fdmove -c 1 2 - foreground { echo "ns_run: fatal: not PID 1" } + echo "ns_run: fatal: not PID 1" exit 111 } unexport PID