aboutsummaryrefslogtreecommitdiff
path: root/bin/9
diff options
context:
space:
mode:
Diffstat (limited to 'bin/9')
-rwxr-xr-xbin/910
1 files changed, 8 insertions, 2 deletions
diff --git a/bin/9 b/bin/9
index ff1a928d..33b0d89c 100755
--- a/bin/9
+++ b/bin/9
@@ -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]*)