shithub: bin.rc

ref: 7888f0d7ab5dbd4f0a92cef3730590a4c7b9bea8
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