Skip to content

Commit 64f8133

Browse files
committed
fix(_comp_command_offset): work around nounset
1 parent 7277df0 commit 64f8133

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bash_completion

+1-1
Original file line numberDiff line numberDiff line change
@@ -2856,7 +2856,7 @@ _comp_command_offset()
28562856
_comp_compgen_commands
28572857
else
28582858
_comp_dequote "${COMP_WORDS[0]}" || REPLY=${COMP_WORDS[0]}
2859-
local cmd=$REPLY compcmd=$REPLY
2859+
local cmd=${REPLY-} compcmd=${REPLY-}
28602860
local cspec=$(complete -p -- "$cmd" 2>/dev/null)
28612861

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

0 commit comments

Comments
 (0)