must let $PLAN9 be overrided in 9 and 9.rc

This commit is contained in:
rsc 2005-01-14 05:42:53 +00:00
parent 67075c3634
commit 3a9ee63519
3 changed files with 13 additions and 5 deletions

10
bin/9
View file

@ -1,7 +1,13 @@
#!/bin/sh
export PLAN9=/usr/local/plan9
export PATH=$PLAN9/bin:$PATH
export PLAN9=${PLAN9:-/usr/local/plan9}
case "$PATH" in
$PLAN9/bin:*)
;;
*)
export PATH=$PLAN9/bin:$PATH
;;
esac
case $# in
[1-9]*)