Skip to content

Commit 5c4fc14

Browse files
committed
fix(make,mutt): fix for "nounset"
1 parent c17cde6 commit 5c4fc14

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

completions/make

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ _make()
137137
if [[ ${words[i]} == -@(C|-directory) ]]; then
138138
# Expand tilde expansion
139139
local ret
140-
_comp_dequote "${words[i + 1]}" &&
140+
_comp_dequote "${words[i + 1]-}" &&
141141
[[ -d ${ret-} ]] &&
142142
makef_dir=(-C "$ret")
143143
break
@@ -150,7 +150,7 @@ _make()
150150
if [[ ${words[i]} == -@(f|-?(make)file) ]]; then
151151
# Expand tilde expansion
152152
local ret
153-
_comp_dequote "${words[i + 1]}" &&
153+
_comp_dequote "${words[i + 1]-}" &&
154154
[[ -f ${ret-} ]] &&
155155
makef=(-f "$ret")
156156
break

completions/mutt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ _muttrc()
2626
_comp_dequote "${1:2}" && muttrc=$ret
2727
else
2828
shift
29-
[[ $1 ]] && _comp_dequote "$1" && muttrc=$ret
29+
[[ ${1-} ]] && _comp_dequote "$1" && muttrc=$ret
3030
fi
3131
break
3232
fi

0 commit comments

Comments
 (0)