shithub: riscv

ref: 3e7a249f146ce7fb3b7f482adc6b1e7f3aba5616
dir: /rc/bin/""/

View raw version
#!/bin/rc

PROMPT='[^ 	]*(%|;)+[ 	]+'

_x = `{" $* | tail -1}
if(~ $#_x 0) {
	echo no such command found >[1=2]
	exit notfound
}

echo '	' $_x >[1=2]
_x=`{ echo -n 'eval '''; echo $_x | sed 's/^'$PROMPT'//; s/''/''''/g; s/$/''/'}
rc -c $"_x