summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2020-04-17 19:18:28 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2020-04-17 19:18:28 +0200
commit7734749e8a7391f4e69281fc35e48df22c9a08a4 (patch)
treef526a88f08040457377cd8501a96c2fe733b39dc
parent57d690c482c7e5f57608befe7cb04797b1bff153 (diff)
downloadplan9front-7734749e8a7391f4e69281fc35e48df22c9a08a4.tar.xz
acme/win: pass on flags to winfs (fix undocumented -e flag)
-rwxr-xr-xacme/bin/win7
1 files changed, 6 insertions, 1 deletions
diff --git a/acme/bin/win b/acme/bin/win
index 165ec2499..b3668f309 100755
--- a/acme/bin/win
+++ b/acme/bin/win
@@ -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