Skip to content

Commit b9db024

Browse files
scopakinomyoga
andauthored
fix(compat): checking non-empty $BASH_COMPLETION_COMPAT_DIR
Co-authored-by: Koichi Murase <myoga.murase@gmail.com>
1 parent cdd8a15 commit b9db024

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
@@ -2611,7 +2611,7 @@ _comp_xfunc()
26112611
26122612
# source compat completion directory definitions
26132613
_comp__init_compat_dirs=()
2614-
if [[ -n $BASH_COMPLETION_COMPAT_DIR ]]; then
2614+
if [[ ${BASH_COMPLETION_COMPAT_DIR-} ]]; then
26152615
_comp__init_compat_dirs+=("$BASH_COMPLETION_COMPAT_DIR")
26162616
else
26172617
_comp__init_compat_dirs+=(/etc/bash_completion.d)

0 commit comments

Comments
 (0)