void-packages/srcpkgs/bash-completion/patches/load_compat.patch
dataCobra f0c70a15ac
bash-completion: update to 2.14.0.
Closes: #51388 [via git-merge-pr]
2024-09-26 13:59:45 -04:00

13 lines
501 B
Diff

--- a/bash_completion.sh.in
+++ b/bash_completion.sh.in
@@ -11,6 +11,10 @@ if [ "x${BASH_VERSION-}" != x -a "x${PS1-}" != x -a "x${BASH_COMPLETION_VERSINFO
# Source completion code.
. @datadir@/@PACKAGE@/bash_completion
fi
+ if shopt -q progcomp && [ -r /usr/share/bash-completion/000_bash_completion_compat.bash ]; then
+ # Source completion code.
+ . /usr/share/bash-completion/000_bash_completion_compat.bash
+ fi
fi
fi