Skip to content

Commit 16ce83f

Browse files
committed
docs(__load_completion): note bash version needing dir source avoidance
1 parent 017fb55 commit 16ce83f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bash_completion

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2558,7 +2558,8 @@ __load_completion()
25582558
[[ -d $dir ]] || continue
25592559
for compfile in "$cmd" "$cmd.bash" "_$cmd"; do
25602560
compfile="$dir/$compfile"
2561-
# Avoid trying to source dirs; https://bugzilla.redhat.com/903540
2561+
# Avoid trying to source dirs as long as we support bash < 4.3
2562+
# to avoid an fd leak; https://bugzilla.redhat.com/903540
25622563
if [[ -d $compfile ]]; then
25632564
# Do not warn with . or .. (especially the former is common)
25642565
[[ $compfile == */.?(.) ]] ||

0 commit comments

Comments
 (0)