diff options
author | cinap_lenrek <cinap_lenrek@centraldogma> | 2011-11-24 00:04:36 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@centraldogma> | 2011-11-24 00:04:36 +0100 |
commit | ca58f1df1755d3fdaa61bd3b6f3457b804ece7d7 (patch) | |
tree | 61c8e45e0a99531c89ed743864bfe66e2fdcba36 /rc/bin/"" | |
parent | 776ac2e25d0dff09bc3becea409a0cdae9cde827 (diff) | |
parent | 67fe83b40f4d427d3abc5f52bc1509559ec04214 (diff) |
merge
Diffstat (limited to 'rc/bin/""')
-rw-r--r-- | rc/bin/"" | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/rc/bin/"" b/rc/bin/"" new file mode 100644 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 |