subsystemctl icon indicating copy to clipboard operation
subsystemctl copied to clipboard

error in command using subsystemctl exec bash

Open noknok79 opened this issue 3 years ago • 3 comments

○ → /root/.cargo/bin/subsystemctl exec bash error: Found argument 'bash' which wasn't expected, or isn't valid in this context

USAGE: subsystemctl exec [FLAGS] [OPTIONS] [-- ...]

For more information try --help

i am using Windows 11, the latest WSL2. the bash does not exist or invalid.

but all commands are working good in Windows 10 WSL2.

please check, thank you!

by the way, you did a great job for this code, thank you very much!

noknok79 avatar Oct 08 '21 23:10 noknok79

it is now both error in windows 10 and windows 11. Something has been modified 5 days ago, based on version. please re-check sir! thank you!

noknok79 avatar Oct 09 '21 00:10 noknok79

even the old version of v0.1.2 is getting errors

error: Found argument 'bash' which wasn't expected, or isn't valid in this context

USAGE: subsystemctl exec [FLAGS] [OPTIONS] [-- ...]

For more information try --help

2021-10-09 08:30:21 ⌚ LAPTOP-IGNCEA4K in /mnt/c/Users/nokie ○ →

noknok79 avatar Oct 09 '21 00:10 noknok79

error in centos

For more information try --help [root@LAPTOP-IGNCEA4K nokie]# subsystemctl shell --start machinectl: unrecognized option '--uid' [root@LAPTOP-IGNCEA4K nokie]# subsystemctl shell --start -u id 1000 error: Found argument '1000' which wasn't expected, or isn't valid in this context

USAGE: subsystemctl shell --start --uid

For more information try --help

noknok79 avatar Oct 09 '21 05:10 noknok79