From 5c2f4ba19294f33d8332763d920a10f704c6f963bdf0683687efd8afe3295e3b Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Tue, 9 Aug 2022 08:00:34 +0000 Subject: [PATCH] Accepting request 991301 from home:ohollmann:branches:shells - Add patch fix-curl-help-completion-bsc1200791.patch (bsc#1200791) * List all options for `curl --` OBS-URL: https://build.opensuse.org/request/show/991301 OBS-URL: https://build.opensuse.org/package/show/shells/bash-completion?expand=0&rev=128 --- bash-completion.changes | 6 ++++++ bash-completion.spec | 4 +++- fix-curl-help-completion-bsc1200791.patch | 17 +++++++++++++++++ 3 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 fix-curl-help-completion-bsc1200791.patch diff --git a/bash-completion.changes b/bash-completion.changes index 9d5cf66..10cd83d 100644 --- a/bash-completion.changes +++ b/bash-completion.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Jul 26 19:26:11 UTC 2022 - Otto Hollmann + +- Add patch fix-curl-help-completion-bsc1200791.patch (bsc#1200791) + * List all options for `curl --` + ------------------------------------------------------------------- Mon May 23 10:37:27 UTC 2022 - Dr. Werner Fink diff --git a/bash-completion.spec b/bash-completion.spec index 9610ca5..8c91af6 100644 --- a/bash-completion.spec +++ b/bash-completion.spec @@ -1,5 +1,5 @@ # -# spec file +# spec file for package bash # # Copyright (c) 2022 SUSE LLC # @@ -70,6 +70,8 @@ Patch12: bash-completion-fix-missing-directory-completion-with-filename-p Patch13: boo1190929-9af4afd0.patch # PATCH-FIX-SUSE boo#1199724 Patch14: bsc1199724-modules.patch +# PATCH-FIX-UPSTREAM bsc#1200791 +Patch15: fix-curl-help-completion-bsc1200791.patch BuildRequires: libtool BuildRequires: pkgconfig BuildArch: noarch diff --git a/fix-curl-help-completion-bsc1200791.patch b/fix-curl-help-completion-bsc1200791.patch new file mode 100644 index 0000000..d393e50 --- /dev/null +++ b/fix-curl-help-completion-bsc1200791.patch @@ -0,0 +1,17 @@ +--- + completions/curl | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +--- a/completions/curl ++++ b/completions/curl +@@ -91,7 +91,9 @@ _curl() + esac + + if [[ $cur == -* ]]; then +- COMPREPLY=($(compgen -W '$(_parse_help "$1")' -- "$cur")) ++ COMPREPLY=($(compgen -W '$(_parse_help "$1" "--help all")' -- "$cur")) ++ [[ $COMPREPLY ]] || ++ COMPREPLY=($(compgen -W '$(_parse_help "$1")' -- "$cur")) + fi + } && + complete -F _curl curl