diff options
author | rsc <devnull@localhost> | 2005-03-06 18:06:12 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2005-03-06 18:06:12 +0000 |
commit | c3e471f477c7a899de2fa37ff468ecbb123db8a7 (patch) | |
tree | fe572d7465782e6856735381c7934ec9069be8eb /bin/u | |
parent | 4b970769b9bbc68042daa320ca1bd28a73614502 (diff) | |
download | plan9port-c3e471f477c7a899de2fa37ff468ecbb123db8a7.tar.gz plan9port-c3e471f477c7a899de2fa37ff468ecbb123db8a7.tar.bz2 plan9port-c3e471f477c7a899de2fa37ff468ecbb123db8a7.zip |
new script
Diffstat (limited to 'bin/u')
-rwxr-xr-x | bin/u | 23 |
1 files changed, 23 insertions, 0 deletions
@@ -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 |