aboutsummaryrefslogtreecommitdiff
path: root/bin/""
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2004-10-17 04:02:55 +0000
committerrsc <devnull@localhost>2004-10-17 04:02:55 +0000
commit47e0a2aa3c6e1ca2b8cd236b934f729fb721baba (patch)
tree4f3814b795e433fbe7934e24cdac82ef072263d1 /bin/""
parent63853aa06999bf26dd9590b864989f4f3008e694 (diff)
downloadplan9port-47e0a2aa3c6e1ca2b8cd236b934f729fb721baba.tar.gz
plan9port-47e0a2aa3c6e1ca2b8cd236b934f729fb721baba.tar.bz2
plan9port-47e0a2aa3c6e1ca2b8cd236b934f729fb721baba.zip
finally got these working
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