Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

terminator -x gets confused by -- #923

Open
meator opened this issue Jun 19, 2024 · 0 comments
Open

terminator -x gets confused by -- #923

meator opened this issue Jun 19, 2024 · 0 comments

Comments

@meator
Copy link
Contributor

meator commented Jun 19, 2024

Describe the bug
terminator tries to handle -- after -x is specified, which is incorrect.

To Reproduce

terminator -x echo -- a

Expected behavior
Program working.

Instead, this happens:

usage: terminator [-h] [-R] [-v] [-m] [-M] [-f] [-b] [-H] [-T FORCEDTITLE] [--geometry GEOMETRY] [-e COMMAND] [-g CONFIG] [-j CONFIGJSON] [-x ...]
                  [--working-directory DIR] [-i FORCEDICON] [-r ROLE] [-l LAYOUT] [-s] [-p PROFILE] [-u] [-d] [--debug-classes DEBUG_CLASSES]
                  [--debug-methods DEBUG_METHODS] [--new-tab] [--toggle-visibility] [--unhide] [--list-profiles] [--list-layouts]
terminator: error: unrecognized arguments: -- a

Everything after -x should be execed verbatim without any additional argument parsing/handling.

The manpage says:

Runs the rest of the command line instead of your default shell or profile specified command.

Special handling of -- breaks this promise.

Desktop:

  • OS or Linux Distribution: Void Linux
  • Version: rolling release
  • Display Technology: X11
  • terminator version: reproducible on 2.1.3, 2.1.4 and on master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant