aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/""11
1 files changed, 10 insertions, 1 deletions
diff --git a/bin/"" b/bin/""
index 2b1f7444..ac5cda8b 100755
--- a/bin/""
+++ b/bin/""
@@ -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