Skip to content
This repository was archived by the owner on Jan 15, 2026. It is now read-only.

Conversation

@kevinoid
Copy link

Sourcing completions/bash/oci-image-tool in bash produces:

bash: __oci-image-tool_previous_extglob_setting=shopt: command not found
bash: eval: -i: invalid option
eval: usage: eval [arg ...]

This occurs because __oci-image-tool_previous_extglob_setting is not a valid variable name (see https://unix.stackexchange.com/q/23659).

Fix the variable name by replacing - with _. Since the variable is unset before the script finishes, this presents minimal compatibility risk.

Thanks for considering,
Kevin

Sourcing completions/bash/oci-image-tool produces:

    bash: __oci-image-tool_previous_extglob_setting=shopt: command not found
    bash: eval: -i: invalid option
    eval: usage: eval [arg ...]

This occurs because `__oci-image-tool_previous_extglob_setting` is not a
valid variable name (see https://unix.stackexchange.com/q/23659).

Fix the variable name by replacing `-` with `_`.  Since the variable is
unset before the script finishes, this presents minimal compatibility
risk.

Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant