shithub: riscv

ref: 84d1ef146386cfe9c26cc897d458e832930ed3e0
dir: /rc/bin/""/

View raw version
#!/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