plan9port/bin/9.rc
Russ Cox e9f50ca103 9.rc: change to work with rc -e (Tony Lainson)
Change sense of test at end of 9.rc so that
when invoked with no arguments the test still
evaluates true, so that it works well with rc -e.
2007-08-22 11:24:34 -04:00

8 lines
140 B
Bash
Executable file

#!/usr/local/plan9/bin/rc
if(~ $#PLAN9 0)
PLAN9=/usr/local/plan9
if(! ~ $path(1) $PLAN9/bin)
path=($PLAN9/bin $path)
~ $#* 0 || exec $*