summaryrefslogtreecommitdiff
path: root/rc/bin/B
blob: 866242438319e84d6d05016da5254f825c1c0376 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/rc

rfork e

files=()
dest=()

if(~ $#* 0){
	echo usage: B file ... >[1=2]
	exit usage
}

if(test -f /mnt/plumb/edit || test -f /mnt/term/mnt/plumb/edit){
	for(i)
		plumb -s B -d edit $i
	exit
}

echo 'no plumber' >[1=2]