gnu: bash-completion: Update to 2.11.

* gnu/packages/bash.scm (bash-completion): Update to 2.11.
[arguments]: Disable tests.
* gnu/packages/patches/bash-completion-directories.patch: Update to
changes in upstream code.
This commit is contained in:
Efraim Flashner 2022-08-07 22:41:18 +03:00
parent 1ff4fef763
commit c791769511
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351
2 changed files with 8 additions and 6 deletions

View file

@ -10,11 +10,11 @@ This is what this patch does.
--- a/bash_completion
+++ b/bash_completion
@@ -2016,7 +2016,13 @@ complete -F _minimal ''
@@ -2173,7 +2173,13 @@ complete -F _minimal ''
__load_completion()
{
- local -a dirs=( ${BASH_COMPLETION_USER_DIR:-${XDG_DATA_HOME:-$HOME/.local/share}/bash-completion}/completions )
- local -a dirs=(${BASH_COMPLETION_USER_DIR:-${XDG_DATA_HOME:-$HOME/.local/share}/bash-completion}/completions)
+ local -a dirs=(
+ ${BASH_COMPLETION_USER_DIR:-${XDG_DATA_HOME:-$HOME/.local/share}/bash-completion}/completions
+ "$HOME/.guix-profile/share/bash-completion/completions/$base"
@ -22,6 +22,7 @@ This is what this patch does.
+ "/run/current-system/profile/share/bash-completion/completions/$base"
+ "/run/current-system/profile/etc/bash_completion.d/$base" )
+
local OIFS=$IFS IFS=: dir cmd="${1##*/}" compfile
local ifs=$IFS IFS=: dir cmd="${1##*/}" compfile
[[ -n $cmd ]] || return 1
for dir in ${XDG_DATA_DIRS:-/usr/local/share:/usr/share}; do
dirs+=( $dir/bash-completion/completions )