acme/win: pass on flags to winfs (fix undocumented -e flag)

This commit is contained in:
cinap_lenrek 2020-04-17 19:18:28 +02:00
parent 57d690c482
commit 7734749e8a

View file

@ -1,8 +1,13 @@
#!/bin/rc
flags=()
while(~ $1 -*){
flags=($flags $1)
shift
}
if(~ $#* 0){
*=(rc -i)
}
/acme/bin/$cputype/winfs $1 >/dev/null >[2=1] || {
/acme/bin/$cputype/winfs $flags $1 >/dev/null >[2=1] || {
# compat
exec /acme/bin/$cputype/win $*
exit