mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
new script
This commit is contained in:
parent
4b970769b9
commit
c3e471f477
1 changed files with 23 additions and 0 deletions
23
bin/u
Executable file
23
bin/u
Executable file
|
@ -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
|
Loading…
Reference in a new issue