[GH-ISSUE #1350] bash completion for --show= not working #849

Closed
opened 2026-10-14 03:25:54 +07:00 by bsakaguchi · 4 comments
Owner

Originally created by @frank-dittrich on GitHub (May 25, 2015).
Original GitHub issue: https://github.com/openwall/john/issues/1350

with __john_completion=2, ./john --show[tab][tab] should be completed to ./john --show= (for john versions which do have --show=LEFT).

For john versions that have --show=LEFT and --show=types, both options should be suggested for ./john --show=[tab][tab]

BTW: should the --list=hidden-options output be changed from --show=types to --show=TYPES?

Originally created by @frank-dittrich on GitHub (May 25, 2015). Original GitHub issue: https://github.com/openwall/john/issues/1350 1. with `__john_completion=2`, `./john --show[tab][tab]` should be completed to `./john --show=` (for john versions which do have `--show=LEFT`). 2. For john versions that have `--show=LEFT` and `--show=types`, both options should be suggested for `./john --show=[tab][tab]` BTW: should the `--list=hidden-options` output be changed from `--show=types` to `--show=TYPES`?
bsakaguchi 2026-10-14 03:25:54 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@magnumripper commented on GitHub (May 26, 2015):

BTW: should the --list=hidden-options output be changed from --show=types to --show=TYPES?

I think not - with our current usage syntax this would imply that TYPES is not literal but something that should be filled in by user. As in --list=WHAT

<!-- gh-comment-id:105402520 --> @magnumripper commented on GitHub (May 26, 2015): > BTW: should the --list=hidden-options output be changed from --show=types to --show=TYPES? I think not - with our current usage syntax this would imply that TYPES is not literal but something that should be filled in by user. As in `--list=WHAT`
Author
Owner

@frank-dittrich commented on GitHub (May 26, 2015):

And what about

--show[=LEFT]             show cracked passwords [if =LEFT, then uncracked]

in john's usage output? Should that change to

--show[=left]             show cracked passwords [if =left, then uncracked]

and bash completion use lower case here as well?

<!-- gh-comment-id:105457954 --> @frank-dittrich commented on GitHub (May 26, 2015): And what about ``` --show[=LEFT] show cracked passwords [if =LEFT, then uncracked] ``` in john's usage output? Should that change to ``` --show[=left] show cracked passwords [if =left, then uncracked] ``` and bash completion use lower case here as well?
Author
Owner

@magnumripper commented on GitHub (May 26, 2015):

Absolutely. The current output is confusing.

<!-- gh-comment-id:105617992 --> @magnumripper commented on GitHub (May 26, 2015): Absolutely. The current output is confusing.
Author
Owner

@frank-dittrich commented on GitHub (Jun 17, 2015):

Fixed in commit github.com/magnumripper/JohnTheRipper@c0a9e61ae8

<!-- gh-comment-id:112884634 --> @frank-dittrich commented on GitHub (Jun 17, 2015): Fixed in commit https://github.com/magnumripper/JohnTheRipper/commit/c0a9e61ae8b5075e24f7e485cc97eb540ff8adab
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
openwall/john#849
No description provided.