aboutsummaryrefslogtreecommitdiff
path: root/bin/""
blob: 2b1f74446f1c4f17e1c73fc17f9dc090509100ee (plain)
1
2
3
4
5
6
7
8
9
10
#!/usr/local/plan9/bin/rc

PROMPT='[^ 	]*[%;$#][ 	]+'

" $* | tail -1 | tee >{wc -l >/tmp/qq.$pid} | tee /dev/stderr | 9sed 's/^	'$PROMPT'//' | rc
if(~ `{cat /tmp/qq.$pid} 0){
	echo no such command found
	exit notfound
}
exit 0