
Something is inserting -- into commands I run
As the title says. I can't find it. If I create a new test user it isn't affected. The distro is Aurora 43 (image-based, Universal Blue).
As an example, I have an Arch Linux distrobox image installed that I cannot enter. After much digging I managed to reduce it to this:
$ podman --log-level debug exec --interactive --detach-keys= --user=root --tty arch su zorael -m --pty
[...]
EBU[0000] Attaching to container 6d5f67e12483060eeab8d046ad416bb8f5d42dcc418e9081d21914a661ddf347 exec session 7de99826b16faf193d39d6929a1b084687dcc8cd4cb31b684da0bee83cb2e415
DEBU[0000] Received: 0
[conmon:d]: exec with attach is waiting for start message from parent
[conmon:d]: exec with attach got start message from parent
DEBU[0000] Received: 1805806
DEBU[0000] Successfully started exec session 7de99826b16faf193d39d6929a1b084687dcc8cd4cb31b684da0bee83cb2e415 in container 6d5f67e12483060eeab8d046ad416bb8f5d42dcc418e9081d21914a661ddf347
bash: --: invalid option
Usage: bash [GNU long option] [option] ...
bash [GNU long option] [option] script-file ...
GNU long options:
--debug
--debugger
--dump-po-strings
--dump-strings
--help
--init-file
--login
--noediting
--noprofile
--norc
--posix
--pretty-print
--rcfile
--restricted
--verbose
--version
Shell options:
-ilrsD or -c command or -O shopt_option (invocation only)
-abefhkmnptuvxBCEHPT or -o option
DEBU[0000] Container 6d5f67e12483060eeab8d046ad416bb8f5d42dcc418e9081d21914a661ddf347 exec session 7de99826b16faf193d39d6929a1b084687dcc8cd4cb31b684da0bee83cb2e415 completed with exit code 2
[...]
I thought this was something related to distrobox or podman, but then I get a similar error when attempting to run zsh-bench.
$ ./zsh-bench
=> benchmarking login shell of user zorael ...
script: option --command and a command after '--' cannot be combined
Try 'script --help' for more information.
zsh-bench: either 'script' or 'zsh' is broken
As with the distrobox/podman command, it works just fine on the other user.
I have tried renaming everything .z* and .b* in my home directory, hoping to catch all zsh and bash config files, to no effect. My login shell is bash and I only enter zsh via my terminal program's profile and as a setting in tmux.conf. It happens both inside and outside of tmux.
Everything in /etc (bashrc, profile etc) would be common to my normal user and the test one I created, so as long as the test user isn't affected, nothing there should logically be causing it.
Where else can I look? What can I do? I obviously did something on my user but I don't know what it could be.