Skip to content

Commit 28e19a2

Browse files
committed
fix(_comp_command_offset): work around nounset
1 parent 095748e commit 28e19a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bash_completion

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2860,7 +2860,7 @@ _comp_command_offset()
28602860
_comp_compgen_commands
28612861
else
28622862
_comp_dequote "${COMP_WORDS[0]}" || REPLY=${COMP_WORDS[0]}
2863-
local cmd=$REPLY compcmd=$REPLY
2863+
local cmd=${REPLY-} compcmd=${REPLY-}
28642864
local cspec=$(complete -p -- "$cmd" 2>/dev/null)
28652865

28662866
# If we have no completion for $cmd yet, see if we have for basename

0 commit comments

Comments
 (0)