Commit Diff


commit - a19c44b83b96fefad131ef324c3eb2916e8c604c
commit + e9a569a96aa4b4b4f18a6d8ade511ee7812c30a6
blob - 2b1f74446f1c4f17e1c73fc17f9dc090509100ee
blob + ac5cda8bf2054338f0cec25df31702eadd12ce14
--- bin/""
+++ 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