summaryrefslogtreecommitdiff
path: root/rc/bin/""
diff options
context:
space:
mode:
authorstanley lieber <stanley.lieber@gmail.com>2011-11-21 10:39:34 -0600
committerstanley lieber <stanley.lieber@gmail.com>2011-11-21 10:39:34 -0600
commit67fe83b40f4d427d3abc5f52bc1509559ec04214 (patch)
treed7856da5612b934e0af93aaebbb754b41838242c /rc/bin/""
parent51b39ae43c55df47a8b19c9d01c84be60eda9fa0 (diff)
add rc scripts ", "" and g from rsc
Diffstat (limited to 'rc/bin/""')
-rwxr-xr-xrc/bin/""13
1 files changed, 13 insertions, 0 deletions
diff --git a/rc/bin/"" b/rc/bin/""
new file mode 100755
index 000000000..0db19cde5
--- /dev/null
+++ b/rc/bin/""
@@ -0,0 +1,13 @@
+#!/bin/rc
+
+PROMPT='[^ ]*%+[ ]+'
+
+_x = `{" $* | tail -1}
+if(~ $#_x 0) {
+ echo no such command found
+ exit notfound
+}
+
+echo ' ' $_x
+_x=`{ echo -n 'eval '; echo $_x | sed 's/^'$PROMPT'//'}
+rc -c $"_x