Skip to content

Use stable _init_completion API in bash completion#2311

Merged
Mab879 merged 1 commit intoOpenSCAP:mainfrom
jan-cerny:RHEL-145121
Feb 16, 2026
Merged

Use stable _init_completion API in bash completion#2311
Mab879 merged 1 commit intoOpenSCAP:mainfrom
jan-cerny:RHEL-145121

Conversation

@jan-cerny
Copy link
Member

Replace private bash-completion functions (_comp__split_longopt, _get_cword) with the stable public _init_completion API. The private functions were renamed in bash-completion 2.12, breaking tab completion on systems with either the old or new version. _init_completion has been stable since bash-completion 2.0 and works across all versions.

Resolves: https://issues.redhat.com/browse/RHEL-145121

Replace private bash-completion functions (`_comp__split_longopt`,
`_get_cword`) with the stable public `_init_completion` API. The private
functions were renamed in bash-completion 2.12, breaking tab completion
on systems with either the old or new version. `_init_completion` has been
stable since bash-completion 2.0 and works across all versions.

Resolves: https://issues.redhat.com/browse/RHEL-145121
@jan-cerny jan-cerny added this to the 1.4.4 milestone Feb 16, 2026
@Mab879 Mab879 self-assigned this Feb 16, 2026
@Mab879 Mab879 merged commit 708ff29 into OpenSCAP:main Feb 16, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants