mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
23 lines
222 B
Bash
Executable file
23 lines
222 B
Bash
Executable file
#!/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
|