shithub: riscv

ref: 7addee38a9c62082974f9e1f6d7cbc8e8e9185a6
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