From 2b8a4ef48a0d42284d5d6ba0fcba1ee2b2b01bc81bd77af826637b40342bbdd1 Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Fri, 22 Mar 2024 13:33:37 +0000 Subject: [PATCH] Fix boo#1221414 OBS-URL: https://build.opensuse.org/package/show/shells/bash-completion?expand=0&rev=139 --- bash-completion.changes | 7 +++++++ bash-completion.spec | 2 ++ boo1221414-scp.patch | 17 +++++++++++++++++ 3 files changed, 26 insertions(+) create mode 100644 boo1221414-scp.patch diff --git a/bash-completion.changes b/bash-completion.changes index 89808aa..c270254 100644 --- a/bash-completion.changes +++ b/bash-completion.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Fri Mar 22 13:31:54 UTC 2024 - Dr. Werner Fink + +- 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 diff --git a/bash-completion.spec b/bash-completion.spec index 083a650..d01f260 100644 --- a/bash-completion.spec +++ b/bash-completion.spec @@ -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 diff --git a/boo1221414-scp.patch b/boo1221414-scp.patch new file mode 100644 index 0000000..088a2a0 --- /dev/null +++ b/boo1221414-scp.patch @@ -0,0 +1,17 @@ +Do not replace COMPREPLY with _comp_compgen_split() + +--- + completions/ssh | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- completions/ssh ++++ 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