aboutsummaryrefslogtreecommitdiff
path: root/bin/u.rc
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-03-06 18:06:38 +0000
committerrsc <devnull@localhost>2005-03-06 18:06:38 +0000
commit9f827afdb9c1f101ccf303dfece4d71096e1917f (patch)
tree2ca4cc80922f95f53e11d8d547d45c8559393ad6 /bin/u.rc
parentc3e471f477c7a899de2fa37ff468ecbb123db8a7 (diff)
downloadplan9port-9f827afdb9c1f101ccf303dfece4d71096e1917f.tar.gz
plan9port-9f827afdb9c1f101ccf303dfece4d71096e1917f.tar.bz2
plan9port-9f827afdb9c1f101ccf303dfece4d71096e1917f.zip
add u and u.rc
Diffstat (limited to 'bin/u.rc')
-rwxr-xr-xbin/u.rc11
1 files changed, 11 insertions, 0 deletions
diff --git a/bin/u.rc b/bin/u.rc
new file mode 100755
index 00000000..e0827a05
--- /dev/null
+++ b/bin/u.rc
@@ -0,0 +1,11 @@
+#!/usr/local/plan9/bin/rc
+
+if(~ $#PLAN9 1) opath=$path i=() {
+ path=()
+ for(i in $opath){
+ if(! ~ $i $PLAN9/bin)
+ path=($path $i)
+ }
+ path=($path $PLAN9/bin)
+}
+! ~ $#* 0 && exec $*