shithub: bin.rc

ref: e467b6f5ab07f5bea9049d1cb5f61d8d3846928b
dir: /bin/samv/

View raw version
#!/bin/rc
# samv [-m] [samflags] [file ...]
rfork e
flags=(-a)
while(~ $1 -*){
	switch($1){
	case *
		flags=($flags $1)
	}
	shift
}
files=($%)
if(! ~ $#* 0)
	files=($files $*)
cmd=(sam $flags $files)
unmount /mnt/plumb
window -m $cmd