1 2 3 4 5 6 7 8 9
#!/bin/rc if(~ $#* 0) f=8.out if not f=$1 if(test -e $f) exec window -cd `{pwd} rc -c 'plumber; exec '^$f echo error: $f does not exist >[1=2] exit 'file not found'