be more careful about not executing self.

clean up tmp files
This commit is contained in:
rsc 2005-01-04 21:12:17 +00:00
parent a19c44b83b
commit e9a569a96a

11
bin/""
View file

@ -2,9 +2,18 @@
PROMPT='[^ ]*[%;$#][ ]+'
" $* | tail -1 | tee >{wc -l >/tmp/qq.$pid} | tee /dev/stderr | 9sed 's/^ '$PROMPT'//' | rc
" $* |
grep -v '^'$PROMPT'""' |
tail -1 |
tee >{wc -l >/tmp/qq.$pid} |
tee /dev/stderr |
9sed 's/^ '$PROMPT'//' |
rc
if(~ `{cat /tmp/qq.$pid} 0){
rm /tmp/qq.$pid
echo no such command found
exit notfound
}
rm /tmp/qq.$pid
exit 0