shithub: riscv

ref: 5b7d8e1f6fb4167e354545fef7e6dd6676986441
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'//; s/''/''''/g; s/$/''/'}
rc -c $"_x