Accepting request 1160694 from shells

- Add patch boo1221414-scp.patch
  * Do not replace the asignment of the array COMPREPLY with
    the shell function _comp_compgen_split (boo#1221414)

OBS-URL: https://build.opensuse.org/request/show/1160694
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bash-completion?expand=0&rev=59
This commit is contained in:
Ana Guerrero 2024-03-26 18:24:34 +00:00 committed by Git OBS Bridge
commit fb0818894b
3 changed files with 26 additions and 0 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Fri Mar 22 13:31:54 UTC 2024 - Dr. Werner Fink <werner@suse.de>
- Add patch boo1221414-scp.patch
* Do not replace the asignment of the array COMPREPLY with
the shell function _comp_compgen_split (boo#1221414)
-------------------------------------------------------------------
Fri Feb 23 09:56:03 UTC 2024 - Dr. Werner Fink <werner@suse.de>

View File

@ -68,6 +68,8 @@ Patch11: bash-completion-2.7-unRAR-remove.patch
Patch13: boo1190929-9af4afd0.patch
# PATCH-FIX-SUSE boo#1199724
Patch14: bsc1199724-modules.patch
# PATCH-FIX-SUSE boo#1221414 -- shells/bash-completion: Bug
Patch15: boo1221414-scp.patch
BuildRequires: libtool
BuildRequires: pkgconfig
BuildArch: noarch

17
boo1221414-scp.patch Normal file
View File

@ -0,0 +1,17 @@
Do not replace COMPREPLY with _comp_compgen_split()
---
completions/ssh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/completions/ssh
+++ b/completions/ssh 2024-03-22 13:27:49.715476006 +0000
@@ -499,7 +499,7 @@ _comp_xfunc_scp_compgen_remote_files()
command sed -e 's/'"$_comp_cmd_scp__path_esc"'/\\\\\\&/g' -e 's/[*@|=]$//g' \
-e 's/[^\/]$/& /g')
fi
- _comp_compgen_split -l -- "$_files"
+ COMPREPLY+=( $_files )
}
# @deprecated 2.12 use `_comp_compgen -ax ssh remote_files` instead