diff options
author | rsc <devnull@localhost> | 2005-01-04 21:12:17 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2005-01-04 21:12:17 +0000 |
commit | e9a569a96aa4b4b4f18a6d8ade511ee7812c30a6 (patch) | |
tree | 233dab3b17b5088b44db9a9eb8c4d38e9210d6fe /bin | |
parent | a19c44b83b96fefad131ef324c3eb2916e8c604c (diff) | |
download | plan9port-e9a569a96aa4b4b4f18a6d8ade511ee7812c30a6.tar.gz plan9port-e9a569a96aa4b4b4f18a6d8ade511ee7812c30a6.tar.bz2 plan9port-e9a569a96aa4b4b4f18a6d8ade511ee7812c30a6.zip |
be more careful about not executing self.
clean up tmp files
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/"" | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -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 |