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

completion: fix bash completion script #2916

Merged
merged 1 commit into from
Jul 29, 2024

Conversation

behrmann
Copy link
Contributor

Template the options definitions directly into the completion function, since for some weird scoping reasons even though the script is read fine and when running a shell with set -x one can see e.g. _mkosi_options being assigned the proper values, the completion function still uses '' for "${_mkosi_options[*]}".

This wasn't caught during development because the script works fine when sourced.

Template the options definitions directly into the completion function, since
for some weird scoping reasons even though the script is read fine and when
running a shell with set -x one can see e.g. _mkosi_options being assigned the
proper values, the completion function still uses '' for
"${_mkosi_options[*]}".

This wasn't caught during development because the script works fine when
sourced.
@behrmann
Copy link
Contributor Author

Thanks at Arch's gromit for catching this.

@DaanDeMeyer DaanDeMeyer merged commit 7f2a5e4 into systemd:main Jul 29, 2024
32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants