diff options
author | moody <moody@posixcafe.org> | 2021-02-27 19:35:06 +0100 |
---|---|---|
committer | moody <moody@posixcafe.org> | 2021-02-27 19:35:06 +0100 |
commit | f704965a457bd9766af9b929dbf30941cdfd9e52 (patch) | |
tree | d10da3474a1702ab7828ca451de55715846c1e38 /rc | |
parent | 51f4f46ae05251967a6152514d9a935e960d022b (diff) | |
download | plan9front-f704965a457bd9766af9b929dbf30941cdfd9e52.tar.xz |
B, Bfn: fix invocation with multiple files, improve manual page
Diffstat (limited to 'rc')
-rwxr-xr-x | rc/bin/B | 16 | ||||
-rwxr-xr-x | rc/bin/Bfn | 2 |
2 files changed, 9 insertions, 9 deletions
@@ -10,6 +10,14 @@ if(~ $#* 0){ exit usage } +if(test -f /mnt/plumb/edit || test -f /mnt/term/mnt/plumb/edit){ + for(i) + plumb -s B -d edit $i + exit +} + +# using sam srv file + for(i) switch($i){ case /* @@ -18,14 +26,6 @@ for(i) files = ( $files `{cleanname `{pwd}^/$i} ) } - -if(test -f /mnt/plumb/edit || test -f /mnt/term/mnt/plumb/edit){ - plumb -s B -d edit $files - exit -} - -# using sam srv file - if(test -f /mnt/term/srv/sam.$user) dest = /mnt/term/srv/sam.$user if not if(test -f /srv/sam.$user) dest = /srv/sam.$user if not { diff --git a/rc/bin/Bfn b/rc/bin/Bfn index 907a414ee..d9b77ac9b 100755 --- a/rc/bin/Bfn +++ b/rc/bin/Bfn @@ -14,5 +14,5 @@ switch($#res){ case 0 echo $1: not found >[2=1] case 1 - plumb $res + B $res } |