aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/97
1 files changed, 5 insertions, 2 deletions
diff --git a/bin/9 b/bin/9
index 33b0d89c..04a942af 100755
--- a/bin/9
+++ b/bin/9
@@ -1,11 +1,14 @@
#!/bin/sh
-export PLAN9=${PLAN9:-/usr/local/plan9}
+PLAN9=${PLAN9:-/usr/local/plan9}
+export PLAN9
+
case "$PATH" in
$PLAN9/bin:*)
;;
*)
- export PATH=$PLAN9/bin:$PATH
+ PATH=$PLAN9/bin:$PATH
+ export PATH
;;
esac