aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorRuss Cox <rsc@swtch.com>2007-11-27 15:39:06 -0500
committerRuss Cox <rsc@swtch.com>2007-11-27 15:39:06 -0500
commit83ab7d88962d717ca5729e7337706b6e4da48af6 (patch)
tree2dcaeba8fec383733357f4db5e9c2d0718767838 /bin
parent00a8743cd85fcb605a06382387ac526e7fe8bf36 (diff)
parent00a8743cd85fcb605a06382387ac526e7fe8bf36 (diff)
downloadplan9port-83ab7d88962d717ca5729e7337706b6e4da48af6.tar.gz
plan9port-83ab7d88962d717ca5729e7337706b6e4da48af6.tar.bz2
plan9port-83ab7d88962d717ca5729e7337706b6e4da48af6.zip
merge
Diffstat (limited to 'bin')
-rwxr-xr-xbin/9fs11
1 files changed, 8 insertions, 3 deletions
diff --git a/bin/9fs b/bin/9fs
index a89a8f6c..fffdc35b 100755
--- a/bin/9fs
+++ b/bin/9fs
@@ -6,18 +6,23 @@ if(! ~ $#* 1){
}
fn srv1 {
+ flag=()
+ if(~ $1 -*){
+ flag=$1
+ shift
+ }
if(! 9p stat $1 >/dev/null >[2=1]){
rm -f $ns/$1
- srv -a $2 $1
+ srv $flag $2 $1
}
}
ns=`{namespace}
switch($1){
case tip
- srv1 tip utumno.tip9ug.jp
+ srv1 -a tip utumno.tip9ug.jp
case sources
- srv1 sources sources.cs.bell-labs.com
+ srv1 -n sources sources.cs.bell-labs.com
case *
srv1 $1 $1
}