Skip to content

Commit dc926e3

Browse files
committed
fix(cvs): fix argument parsing (regression by d0a0eb5)
In commit d0a0eb5, [[ ! $mode ]] in completions/cvs is converted to [[ ! -v mode ]]. However, the code two lines above, mode="", which intended to turn [[ ! $mode ]] true, became not working by this change. This commit tries to fix it.
1 parent c980b58 commit dc926e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

completions/cvs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ _cvs()
6262
((count == cword)) && break
6363
# Last parameter was the CVSROOT, now go back to mode selection
6464
if [[ ${words[count]} == "${cvsroot-}" && ${mode-} == cvsroot ]]; then
65-
mode=""
65+
unset -v mode
6666
fi
6767
if [[ ! -v mode ]]; then
6868
# shellcheck disable=SC2254

0 commit comments

Comments
 (0)