shithub: riscv

ref: 435a0f18d5a5f372b4d5a30953e8d6bfd9cf6d17
dir: /rc/bin/B/

View raw version
#!/bin/rc

rfork e

files=()
dest=()

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

wdir=`{pwd}
for(i){
	if(! ~ $i /*)
		i=$wdir/$i
	plumb -s B -d edit $i
}