From 518fd8f9d27cb455d846dadd36cd23f5318a6723ecd434aa479e46e596d742bd Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Wed, 12 Aug 2015 13:18:08 +0000 Subject: [PATCH 1/2] . OBS-URL: https://build.opensuse.org/package/show/shells/bash-completion?expand=0&rev=58 --- bash-completion.changes | 5 +++++ bash-completion.spec | 2 +- ls-completion-boo889319.patch | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/bash-completion.changes b/bash-completion.changes index c5b53b4..805a13b 100644 --- a/bash-completion.changes +++ b/bash-completion.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Aug 12 13:17:40 UTC 2015 - werner@suse.de + +- Correct typo in patch ls-completion-boo889319.patch + ------------------------------------------------------------------- Mon Jun 15 08:28:30 UTC 2015 - werner@suse.de diff --git a/bash-completion.spec b/bash-completion.spec index df98bed..4743ceb 100644 --- a/bash-completion.spec +++ b/bash-completion.spec @@ -1,7 +1,7 @@ # # spec file for package bash-completion # -# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed diff --git a/ls-completion-boo889319.patch b/ls-completion-boo889319.patch index 282c2bb..3323602 100644 --- a/ls-completion-boo889319.patch +++ b/ls-completion-boo889319.patch @@ -9,7 +9,7 @@ } # makeinfo and texi2dvi are defined elsewhere. -complete -F _longopt -o filenames a2ps awk base64 bash bc bison cat colordiff cp csplit \ -+complete -F _longopt filenames a2ps awk base64 bash bc bison cat colordiff cp csplit \ ++complete -F _longopt -o filenames a2ps awk base64 bash bc bison cat colordiff cp csplit \ cut date df diff dir du enscript expand fmt fold gperf \ - grep grub head indent irb ld ldd less ln ls m4 md5sum mkdir mkfifo mknod \ + grep grub head indent irb ld ldd less ln m4 md5sum mkdir mkfifo mknod \ From a65ee80f98ed8292d0ff7c725b164dc4979bf45b53906ee913d00237211a5117 Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Thu, 13 Aug 2015 06:56:41 +0000 Subject: [PATCH 2/2] . OBS-URL: https://build.opensuse.org/package/show/shells/bash-completion?expand=0&rev=59 --- backtick-completion-boo940835.patch | 41 +++++++++++++++++++++++++++++ bash-completion.changes | 6 +++++ bash-completion.spec | 3 +++ 3 files changed, 50 insertions(+) create mode 100644 backtick-completion-boo940835.patch diff --git a/backtick-completion-boo940835.patch b/backtick-completion-boo940835.patch new file mode 100644 index 0000000..4c60e0c --- /dev/null +++ b/backtick-completion-boo940835.patch @@ -0,0 +1,41 @@ +--- + bash_completion | 15 ++++++++++----- + 1 file changed, 10 insertions(+), 5 deletions(-) + +--- bash_completion ++++ bash_completion 2015-08-13 06:50:46.873519910 +0000 +@@ -945,16 +945,21 @@ _tilde() + _dollar() + { + local s="" +- local -i glob=0 +- ++ local -i glob=0 cmd=0 + shopt -q extglob && let glob++ + ((glob == 0)) && shopt -s extglob + + [[ "$COMP_LINE" == cd* ]] && s="/" + + case "$1" in +- \$\(*|\`*) +- COMPREPLY=($(compgen -c -P '$(' -S ")$s" -- ${1#??})) ;; ++ \$\(*) ++ COMPREPLY=($(compgen -c -P '$(' -S ")$s" -- ${1#??})) ++ let cmd++ ++ ;; ++ \`*) ++ COMPREPLY=($(compgen -c -P '\`' -S "\`$s" -- ${1#?})) ++ let cmd++ ++ ;; + \$\{*) + COMPREPLY=($(compgen -v -P '${' -S "}$s" -- ${1#??})) ;; + \$*) +@@ -966,7 +971,7 @@ _dollar() + + if ((${#COMPREPLY[@]} > 0)) ; then + ((${#COMPREPLY[@]} == 1)) && eval COMPREPLY=\(${COMPREPLY[@]}\) +- else ++ elif ((cmd == 0)); then + eval COMPREPLY=\(${1}\) + fi + diff --git a/bash-completion.changes b/bash-completion.changes index 805a13b..8317035 100644 --- a/bash-completion.changes +++ b/bash-completion.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Aug 13 06:53:15 UTC 2015 - werner@suse.de + +- Add patch backtick-completion-boo940835.patch to allow correct + backtick completion (boo#940835) + ------------------------------------------------------------------- Wed Aug 12 13:17:40 UTC 2015 - werner@suse.de diff --git a/bash-completion.spec b/bash-completion.spec index 4743ceb..5cd97be 100644 --- a/bash-completion.spec +++ b/bash-completion.spec @@ -37,6 +37,8 @@ Patch3: FOO-dir-completion-boo905348.patch Patch4: init-completion-boo922758.patch # PATCH-FIX-SUSE boo#889319 Patch5: ls-completion-boo889319.patch +# PATCH-FIX-SUSE boo#940835 +Patch6: backtick-completion-boo940835.patch BuildRequires: pkg-config Requires: bash BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -54,6 +56,7 @@ of the programmable completion feature of Bash 2.04 and later. %patch3 -b .p3 %patch4 -b .p4 %patch5 -b .p5 +%patch6 -b .p6 %build %configure