shithub: riscv

ref: ad7120b2e2f0ed0d226eec1b5ef6fc6b3eebb4ef
dir: /acme/bin/win/

View raw version
#!/bin/rc
flags=()
while(~ $1 -*){
	flags=($flags $1)
	shift
}
if(~ $#* 0){
	*=(rc -i)
}
/acme/bin/$cputype/winfs $flags $1 >/dev/null >[2=1] || {
	# compat
	exec /acme/bin/$cputype/win $*
	exit
}
echo dump win $* > /dev/acme/ctl
</dev/cons >/dev/cons >[2=1] $*
exit ''