-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Labels
Description
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.
Put another way. Actual behaviour:
c:\> wsl --shutdown foo
c:\>
Expected behaviour:
c:\> wsl --shutdown foo
Error: Unknown argument "foo"
c:\>
(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
Reactions are currently unavailable