aboutsummaryrefslogtreecommitdiff
path: root/bin/quote2
diff options
context:
space:
mode:
Diffstat (limited to 'bin/quote2')
-rwxr-xr-xbin/quote210
1 files changed, 10 insertions, 0 deletions
diff --git a/bin/quote2 b/bin/quote2
new file mode 100755
index 00000000..c77da34d
--- /dev/null
+++ b/bin/quote2
@@ -0,0 +1,10 @@
+#!/usr/local/plan9/bin/rc
+
+cmd = `{" $* | tail -1}
+if (~ $#cmd 0) {
+ echo no such command found >[1=2]
+ exit notfound
+}
+
+echo ' ' $cmd >[1=2]
+rc -c $"cmd