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