plan9fox/rc/bin/""
cinap_lenrek ca58f1df17 merge
2011-11-24 00:04:36 +01:00

13 lines
199 B
Bash

#!/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