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/bin/B | |
parent | 51f4f46ae05251967a6152514d9a935e960d022b (diff) | |
download | plan9front-f704965a457bd9766af9b929dbf30941cdfd9e52.tar.xz |
B, Bfn: fix invocation with multiple files, improve manual page
Diffstat (limited to 'rc/bin/B')
-rwxr-xr-x | rc/bin/B | 16 |
1 files changed, 8 insertions, 8 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 { |