Skip to content

Commit d76dd9e

Browse files
committed
fix(dict): work around bash-4.2 array nounset
1 parent d84c063 commit d76dd9e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

completions/dict

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ _comp_cmd_dict()
4242
# shellcheck disable=SC2254
4343
case $prev in
4444
--database | -info | -${noargopts}[di])
45-
_comp_compgen_split -- "$(_dictdata "${dict_options[@]}" -D)"
45+
_comp_compgen_split -- "$(_dictdata ${dict_options[@]+"${dict_options[@]}"} -D)"
4646
return
4747
;;
4848
--strategy | -${noargopts}s)
49-
_comp_compgen_split -- "$(_dictdata "${dict_options[@]}" -S)"
49+
_comp_compgen_split -- "$(_dictdata ${dict_options[@]+"${dict_options[@]}"} -S)"
5050
return
5151
;;
5252
esac

0 commit comments

Comments
 (0)