Blob
1 #!/usr/local/plan9/bin/rc3 PROMPT='[^ ]*[%;$#][ ]+'5 " $* |6 grep -v '^'$PROMPT'""' |7 tail -1 |8 tee >{wc -l >/tmp/qq.$pid} |9 tee /dev/stderr |10 9 sed 's/^ '$PROMPT'//' |11 rc13 if(~ `{cat /tmp/qq.$pid} 0){14 rm /tmp/qq.$pid15 echo no such command found16 exit notfound17 }18 rm /tmp/qq.$pid19 exit 0