plan9fox/rc/bin/""
2011-12-01 10:23:05 -06:00

13 lines
199 B
Bash
Executable file

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