You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
wsl --shutdown is the entire legal command according to wsl --help. However, if I actually type wsl --shutdown Ubuntu (i.e. when I get confused about which of --shutdown and --terminate is which), no error is issued. There should be an error, because Ubuntu is not an expected parameter to --shutdown.
(No doubt this is happening because other cmdline options in wsl allow launching an arbitrary command within the WSL VM. However, --shutdown doesn't allow this, so shouldn't accept the meaningless/unused command argument.)
Windows build number: 10.0.18985.1
The text was updated successfully, but these errors were encountered:
so shouldn't accept the meaningless/unused command argument
That's pretty normal
$ gcc --version foo
gcc (Ubuntu 8.3.0-6ubuntu1) 8.3.0
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
I think the fact gcc has the same issue doesn't mean it isn't a bug. Admittedly, --version and --help often do have this quirk, but it's rare for other options in my experience.
wsl --shutdown
is the entire legal command according towsl --help
. However, if I actually typewsl --shutdown Ubuntu
(i.e. when I get confused about which of--shutdown
and--terminate
is which), no error is issued. There should be an error, becauseUbuntu
is not an expected parameter to--shutdown
.Put another way. Actual behaviour:
Expected behaviour:
(No doubt this is happening because other cmdline options in wsl allow launching an arbitrary command within the WSL VM. However, --shutdown doesn't allow this, so shouldn't accept the meaningless/unused command argument.)
Windows build number: 10.0.18985.1
The text was updated successfully, but these errors were encountered: