Skip to content

Commit

Permalink
test(_comp_compgen_commands): fix with bash 4.2 and nounset mode
Browse files Browse the repository at this point in the history
  • Loading branch information
scop committed Jun 1, 2023
1 parent b42b79b commit c39d2e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/t/unit/test_unit_compgen_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def functions(self, request, bash):
r"_comp_compgen_commands__test() {"
r" local COMPREPLY=() cur=${1-};"
r" _comp_compgen_commands;"
r' printf "%s\n" "${COMPREPLY[@]}";'
r' printf "%s\n" "${COMPREPLY[@]-}";'
r"}",
)
assert_bash_exec(
Expand Down

0 comments on commit c39d2e3

Please sign in to comment.