aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-03-06 18:06:12 +0000
committerrsc <devnull@localhost>2005-03-06 18:06:12 +0000
commitc3e471f477c7a899de2fa37ff468ecbb123db8a7 (patch)
treefe572d7465782e6856735381c7934ec9069be8eb /bin
parent4b970769b9bbc68042daa320ca1bd28a73614502 (diff)
downloadplan9port-c3e471f477c7a899de2fa37ff468ecbb123db8a7.tar.gz
plan9port-c3e471f477c7a899de2fa37ff468ecbb123db8a7.tar.bz2
plan9port-c3e471f477c7a899de2fa37ff468ecbb123db8a7.zip
new script
Diffstat (limited to 'bin')
-rwxr-xr-xbin/u23
1 files changed, 23 insertions, 0 deletions
diff --git a/bin/u b/bin/u
new file mode 100755
index 00000000..e1d51867
--- /dev/null
+++ b/bin/u
@@ -0,0 +1,23 @@
+#!/bin/sh
+
+case "$PLAN9" in
+'')
+ ;;
+*)
+ PATH=`
+ echo "$PATH" |
+ sed '
+ s,'$PLAN9/bin:',,g
+ s,':$PLAN9/bin',,g
+ '
+ `
+ PATH="$PATH:$PLAN9/bin"
+ export PATH
+ ;;
+esac
+
+case $# in
+[1-9]*)
+ exec "$@"
+ ;;
+esac