tnew script - plan9port - [fork] Plan 9 from user space
HTML git clone git://src.adamsgaard.dk/plan9port
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit c3e471f477c7a899de2fa37ff468ecbb123db8a7
DIR parent 4b970769b9bbc68042daa320ca1bd28a73614502
HTML Author: rsc <devnull@localhost>
Date: Sun, 6 Mar 2005 18:06:12 +0000
new script
Diffstat:
A bin/u | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+), 0 deletions(-)
---
DIR diff --git a/bin/u b/bin/u
t@@ -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