Skip to content

Commit

Permalink
Merge pull request #147 from scop/fix/bash-var-leaks
Browse files Browse the repository at this point in the history
More bash variable leak fixes
  • Loading branch information
casperdcl authored Jul 29, 2023
2 parents 3d61448 + 6b7a459 commit ea43eb8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions shtab/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,15 @@ def complete_bash(parser, root_prefix=None, preamble="", choice_functions=None):
# ${!x} -> ${hello} -> "world"
${root_prefix}() {
local completing_word="${COMP_WORDS[COMP_CWORD]}"
local completed_positional_actions
local current_action
local current_action_args_start_index
local current_action_choices
local current_action_compgen
local current_action_is_positional
local current_action_nargs
local current_option_strings
local sub_parsers
COMPREPLY=()
local prefix=${root_prefix}
Expand Down

0 comments on commit ea43eb8

Please sign in to comment.