From bdab5cce302681024644e70ca1bb401d153166a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Mon, 14 Oct 2024 13:57:27 +0200 Subject: [PATCH] Sync from SUSE:ALP:Source:Standard:1.0 bash-completion revision 00fce5543cadfea11f2033dcdd94cf10 --- .gitattributes | 23 + FOO-dir-completion-boo905348.patch | 77 + LVM-completion-bsc946875.patch | 92 + _multibuild | 4 + backtick-completion-boo940835.patch | 43 + backticks-bsc963140.patch | 45 + bash-completion-2.11.tar.xz | 3 + bash-completion-2.4.patch | 27 + bash-completion-2.7-unRAR-remove.patch | 28 + ...ory-completion-with-filename-pattern.patch | 73 + bash-completion-rpmlintrc | 1 + bash-completion.changes | 1909 +++++++++++++++++ bash-completion.spec | 175 ++ boo1190929-9af4afd0.patch | 89 + bsc1199724-modules.patch | 15 + fix-curl-help-completion-bsc1200791.patch | 17 + ls-completion-boo889319.patch | 22 + qdbus-qt5.patch | 38 + respect-variables-boo940837.patch | 36 + rm-completion-smart-boo958462.patch | 28 + tar-completion.patch | 19 + 21 files changed, 2764 insertions(+) create mode 100644 .gitattributes create mode 100644 FOO-dir-completion-boo905348.patch create mode 100644 LVM-completion-bsc946875.patch create mode 100644 _multibuild create mode 100644 backtick-completion-boo940835.patch create mode 100644 backticks-bsc963140.patch create mode 100644 bash-completion-2.11.tar.xz create mode 100644 bash-completion-2.4.patch create mode 100644 bash-completion-2.7-unRAR-remove.patch create mode 100644 bash-completion-fix-missing-directory-completion-with-filename-pattern.patch create mode 100644 bash-completion-rpmlintrc create mode 100644 bash-completion.changes create mode 100644 bash-completion.spec create mode 100644 boo1190929-9af4afd0.patch create mode 100644 bsc1199724-modules.patch create mode 100644 fix-curl-help-completion-bsc1200791.patch create mode 100644 ls-completion-boo889319.patch create mode 100644 qdbus-qt5.patch create mode 100644 respect-variables-boo940837.patch create mode 100644 rm-completion-smart-boo958462.patch create mode 100644 tar-completion.patch diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..fecc750 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/FOO-dir-completion-boo905348.patch b/FOO-dir-completion-boo905348.patch new file mode 100644 index 0000000..70312f8 --- /dev/null +++ b/FOO-dir-completion-boo905348.patch @@ -0,0 +1,77 @@ +--- + bash_completion | 47 ++++++++++++++++++++++++++++++++++++++++++++++- + 1 file changed, 46 insertions(+), 1 deletion(-) + +Index: bash-completion-2.11/bash_completion +=================================================================== +--- bash-completion-2.11.orig/bash_completion ++++ bash-completion-2.11/bash_completion +@@ -566,6 +566,7 @@ _filedir() + local IFS=$'\n' + + _tilde "${cur-}" || return ++ _dollar "$cur" || return + + local -a toks + local reset arg=${1-} +@@ -1044,6 +1045,42 @@ _tilde() + return $result + } + ++# Perform dollar ($) completion ++# @return True (0) if completion needs further processing, ++# False (> 0) if dollar is followed by a valid username, completions ++# are put in COMPREPLY and no further processing is necessary. ++_dollar() ++{ ++ local s="" ++ local -i glob=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 -v -P '${' -S "}$s" -- ${1#??})) ;; ++ \$*) ++ COMPREPLY=($(compgen -v -P '$' ${s:+-S $s} -- ${1#?})) ;; ++ *) ++ ((glob == 0)) && shopt -u extglob ++ return 0 ++ esac ++ ++ if ((${#COMPREPLY[@]} > 0)) ; then ++ ((${#COMPREPLY[@]} == 1)) && eval COMPREPLY=\(${COMPREPLY[@]}\) ++ else ++ eval COMPREPLY=\(${1}\) ++ fi ++ ++ ((glob == 0)) && shopt -u extglob ++ return ${#COMPREPLY[@]} ++} ++ + # Expand variable starting with tilde (~) + # We want to expand ~foo/... to /home/foo/... to avoid problems when + # word-to-complete starting with a tilde is fed to commands and ending up +@@ -1810,7 +1847,16 @@ complete -F _known_hosts traceroute trac + _cd() + { + local cur prev words cword +- _init_completion || return ++ _init_completion || { ++ if [[ ${#COMPREPLY[@]} -eq 1 ]]; then ++ local i=${COMPREPLY[0]} ++ if [[ "$i" == "$cur" && $i != "*/" ]]; then ++ _dollar "$i" || return ++ COMPREPLY[0]="${i%%/}/" ++ fi ++ fi ++ return ++ } + + local IFS=$'\n' i j k + diff --git a/LVM-completion-bsc946875.patch b/LVM-completion-bsc946875.patch new file mode 100644 index 0000000..0db26db --- /dev/null +++ b/LVM-completion-bsc946875.patch @@ -0,0 +1,92 @@ +There are the following problems with lvm completions: +1)_lvm_physicalvolumes() only gets PVs that belong to a VG. In some + cases like pvremove we can use all PVs including those not included + in any VGs. + solution: Add _lvm_physicalvolumes_all to get all PVs and correct + all the commands. + +2)pvcreate should be able to use all block devcices. + solution: Add _lvm_filedir() to use _filedir except set $cur to /dev + when $cur is empty. + +3)when /etc/lvm/lvm.conf silent is 1 there is no output for vg/lv/pvscan, + bash-completion will not work. + solution: Check the value of silent option. If it is 1 then temporarily + set silent 0 and recover back to 1 after the command executed. + +Signed-off-by: Liuhua Wang +Reviewed-by: Lidong Zhong + + + + + + +Index: bash-completion-2.11/completions/lvm +=================================================================== +--- bash-completion-2.11.orig/completions/lvm ++++ bash-completion-2.11/completions/lvm +@@ -6,27 +6,41 @@ _lvm_filedir() + _filedir + } + ++_lvm_verbose() ++{ ++ local silent=$(sed -n -e "s|^[ \t]*silent[ \t]*=[ \t]*\([01]\)|\1|p" /etc/lvm/lvm.conf) ++ test ${silent:-0} -eq 1 ++} ++ + _lvm_volumegroups() + { +- COMPREPLY=($(compgen -W "$(vgscan 2>/dev/null | ++ local verbose ++ _lvm_verbose && verbose=-v ++ COMPREPLY=( $(compgen -W "$( vgscan $verbose 2>/dev/null | \ + command sed -n -e 's|.*Found.*"\(.*\)".*$|\1|p')" -- "$cur")) + } + + _lvm_physicalvolumes_all() + { +- COMPREPLY=($(compgen -W "$(pvscan 2>/dev/null | ++ local verbose ++ _lvm_verbose && verbose=-v ++ COMPREPLY=( $(compgen -W "$( pvscan $verbose 2>/dev/null | \ + command sed -n -e 's|^.*PV \([^ ]*\) .*|\1|p')" -- "$cur")) + } + + _lvm_physicalvolumes() + { +- COMPREPLY=($(compgen -W "$(pvscan 2>/dev/null | ++ local verbose ++ _lvm_verbose && verbose=-v ++ COMPREPLY=( $(compgen -W "$( pvscan $verbose 2>/dev/null | \ + command sed -n -e 's|^.*PV \(.*\) VG.*$|\1|p')" -- "$cur")) + } + + _lvm_logicalvolumes() + { +- COMPREPLY=($(compgen -W "$(lvscan 2>/dev/null | ++ local verbose ++ _lvm_verbose && verbose=-v ++ COMPREPLY=( $(compgen -W "$( lvscan $verbose 2>/dev/null | \ + command sed -n -e "s|^.*'\(.*\)'.*$|\1|p")" -- "$cur")) + if [[ $cur == /dev/mapper/* ]]; then + _filedir +@@ -387,7 +401,7 @@ _vgreduce() + if ((args == 0)); then + _lvm_volumegroups + else +- _lvm_physicalvolumes ++ _lvm_physicalvolumes_all + fi + fi + } && +@@ -701,7 +715,7 @@ _lvcreate() + if ((args == 0)); then + _lvm_volumegroups + else +- _lvm_physicalvolumes ++ _lvm_physicalvolumes_all + fi + fi + } && diff --git a/_multibuild b/_multibuild new file mode 100644 index 0000000..3ed17b0 --- /dev/null +++ b/_multibuild @@ -0,0 +1,4 @@ + + doc + + diff --git a/backtick-completion-boo940835.patch b/backtick-completion-boo940835.patch new file mode 100644 index 0000000..6d368c7 --- /dev/null +++ b/backtick-completion-boo940835.patch @@ -0,0 +1,43 @@ +--- + bash_completion | 15 ++++++++++----- + 1 file changed, 10 insertions(+), 5 deletions(-) + +Index: bash-completion-2.11/bash_completion +=================================================================== +--- bash-completion-2.11.orig/bash_completion ++++ bash-completion-2.11/bash_completion +@@ -1052,16 +1052,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#??})) ;; + \$*) +@@ -1073,7 +1078,7 @@ _dollar() + + if ((${#COMPREPLY[@]} > 0)) ; then + ((${#COMPREPLY[@]} == 1)) && eval COMPREPLY=\(${COMPREPLY[@]}\) +- else ++ elif ((cmd == 0)); then + eval COMPREPLY=\(${1}\) + fi + diff --git a/backticks-bsc963140.patch b/backticks-bsc963140.patch new file mode 100644 index 0000000..038f36d --- /dev/null +++ b/backticks-bsc963140.patch @@ -0,0 +1,45 @@ +--- + bash-completion-2.7/bash_completion | 20 ++++++++++++++------ + 1 file changed, 14 insertions(+), 6 deletions(-) + +Index: bash-completion-2.11/bash_completion +=================================================================== +--- bash-completion-2.11.orig/bash_completion ++++ bash-completion-2.11/bash_completion +@@ -1059,13 +1059,21 @@ _dollar() + [[ "$COMP_LINE" == cd* ]] && s="/" + + case "$1" in ++ \$\(*\)) ++ ((glob == 0)) && shopt -u extglob ++ return 0 ++ ;; + \$\(*) +- COMPREPLY=($(compgen -c -P '$(' -S ")$s" -- ${1#??})) +- let cmd++ ++ COMPREPLY=($(compgen -c -P '$(' -S ")$s" -- ${1:2})) ++ ((${#COMPREPLY[@]} <= 0)) && let cmd++ ++ ;; ++ \`*\`) ++ ((glob == 0)) && shopt -u extglob ++ return 0 + ;; + \`*) +- COMPREPLY=($(compgen -c -P '\`' -S "\`$s" -- ${1#?})) +- let cmd++ ++ COMPREPLY=($(compgen -c -P '\`' -S "\`$s" -- ${1:1})) ++ ((${#COMPREPLY[@]} <= 0)) && let cmd++ + ;; + \$\{*) + COMPREPLY=($(compgen -v -P '${' -S "}$s" -- ${1#??})) ;; +@@ -1078,8 +1086,8 @@ _dollar() + + if ((${#COMPREPLY[@]} > 0)) ; then + ((${#COMPREPLY[@]} == 1)) && eval COMPREPLY=\(${COMPREPLY[@]}\) +- elif ((cmd == 0)); then +- eval COMPREPLY=\(${1}\) ++ elif ((cmd > 0)); then ++ compopt -o default -o bashdefault -o nospace + fi + + ((glob == 0)) && shopt -u extglob diff --git a/bash-completion-2.11.tar.xz b/bash-completion-2.11.tar.xz new file mode 100644 index 0000000..a292f86 --- /dev/null +++ b/bash-completion-2.11.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:73a8894bad94dee83ab468fa09f628daffd567e8bef1a24277f1e9a0daf911ac +size 311004 diff --git a/bash-completion-2.4.patch b/bash-completion-2.4.patch new file mode 100644 index 0000000..e8ae08a --- /dev/null +++ b/bash-completion-2.4.patch @@ -0,0 +1,27 @@ +--- + bash_completion | 11 ++++++----- + 1 file changed, 6 insertions(+), 5 deletions(-) + +Index: bash-completion-2.11/bash_completion +=================================================================== +--- bash-completion-2.11.orig/bash_completion ++++ bash-completion-2.11/bash_completion +@@ -2031,12 +2031,13 @@ _longopt() + fi + } + # makeinfo and texi2dvi are defined elsewhere. +-complete -F _longopt a2ps awk base64 bash bc bison cat chroot colordiff cp \ +- csplit cut date df diff dir du enscript env expand fmt fold gperf \ ++complete -F _longopt -o filenames a2ps awk base64 bash bc bison cat chroot colordiff cp \ ++ csplit cut date df diff dir du enscript expand fmt fold gperf \ + grep grub head irb ld ldd less ln ls m4 md5sum mkdir mkfifo mknod \ +- mv netstat nl nm objcopy objdump od paste pr ptx readelf rm rmdir \ +- sed seq sha{,1,224,256,384,512}sum shar sort split strip sum tac tail tee \ +- texindex touch tr uname unexpand uniq units vdir wc who ++ mv nl nm objcopy objdump od paste pr ptx readelf rm rmdir \ ++ sed sha{,1,224,256,384,512}sum shar sort split strip sum tac tail tee \ ++ texindex touch tr unexpand uniq vdir wc who ++complete -F _longopt -o default env netstat seq uname units + + declare -Ag _xspecs + diff --git a/bash-completion-2.7-unRAR-remove.patch b/bash-completion-2.7-unRAR-remove.patch new file mode 100644 index 0000000..6df86c2 --- /dev/null +++ b/bash-completion-2.7-unRAR-remove.patch @@ -0,0 +1,28 @@ +Due legal issue the unRAR part of 7z had been removed (boo#1077978, boo#1090515) + +--- + completions/7z | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +Index: bash-completion-2.11/completions/7z +=================================================================== +--- bash-completion-2.11.orig/completions/7z ++++ bash-completion-2.11/completions/7z +@@ -76,7 +76,7 @@ _7z() + else + COMPREPLY=($(compgen -P${cur:0:2} -W '7z apm arj bzip2 cab + chm cpio cramfs deb dmg elf fat flv gzip hfs iso lzh lzma +- lzma86 macho mbr mslz mub nsis ntfs pe ppmd rar rpm ++ lzma86 macho mbr mslz mub nsis ntfs pe ppmd rpm + squashfs swf swfc tar udf vhd wim xar xz z zip' \ + -- "${cur:2}")) + fi +@@ -110,7 +110,7 @@ _7z() + # (assumption: extensions are all lowercase) + [[ $mode == w ]] && + _filedir '@(7z|bz2|swf|?(g)tar|?(t)[bglx]z|tb?(z)2|wim)' || +- _filedir '@(7z|arj|bz2|cab|chm|cpio|deb|dmg|flv|gem|img|iso|lz[ah]|lzma?(86)|msi|pmd|[rx]ar|rpm|sw[fm]|?(g)tar|taz|?(t)[bglx]z|tb?(z)2|vhd|wim|Z)' ++ _filedir '@(7z|arj|bz2|cab|chm|cpio|deb|dmg|flv|gem|img|iso|lz[ah]|lzma?(86)|msi|pmd|xar|rpm|sw[fm]|?(g)tar|taz|?(t)[bglx]z|tb?(z)2|vhd|wim|Z)' + else + if [[ ${words[1]} == d ]]; then + local IFS=$'\n' diff --git a/bash-completion-fix-missing-directory-completion-with-filename-pattern.patch b/bash-completion-fix-missing-directory-completion-with-filename-pattern.patch new file mode 100644 index 0000000..ae6cb70 --- /dev/null +++ b/bash-completion-fix-missing-directory-completion-with-filename-pattern.patch @@ -0,0 +1,73 @@ +From 06f94a5c855fc38c0583a3b65c27c1c814a90bac Mon Sep 17 00:00:00 2001 +From: Michal Suchanek +Date: Mon, 30 Mar 2020 19:48:39 +0200 +Subject: [PATCH] Revert "_filedir: avoid duplicate dirs internally, and a + compgen -d call for files" + +This reverts commit da99bc55954e9f60b9c3a9e9071ff6301d7015cb. + +References: https://github.com/scop/bash-completion/issues/378 boo#1167952 + +The solution without calling compgen -d proves unrealiable. + +Until this is fixed revert to calling compgen -d for completions with +file pattern. +--- + bash_completion | 25 ++++++++----------------- + 1 file changed, 8 insertions(+), 17 deletions(-) + +Index: bash-completion-2.11/bash_completion +=================================================================== +--- bash-completion-2.11.orig/bash_completion ++++ bash-completion-2.11/bash_completion +@@ -571,34 +571,22 @@ _filedir() + local -a toks + local reset arg=${1-} + +- if [[ $arg == -d ]]; then +- reset=$(shopt -po noglob) +- set -o noglob +- toks=($(compgen -d -- "${cur-}")) +- IFS=' ' +- $reset +- IFS=$'\n' +- else ++ reset=$(shopt -po noglob); set -o noglob ++ toks=( $(compgen -d -- "$cur") ) ++ IFS=' '; $reset; IFS=$'\n' ++ ++ if [[ "$1" != -d ]]; then + local quoted + _quote_readline_by_ref "${cur-}" quoted + + # Munge xspec to contain uppercase version too + # https://lists.gnu.org/archive/html/bug-bash/2010-09/msg00036.html + # news://news.gmane.io/4C940E1C.1010304@case.edu +- local xspec=${arg:+"!*.@($arg|${arg^^})"} plusdirs=() +- +- # Use plusdirs to get dir completions if we have a xspec; if we don't, +- # there's no need, dirs come along with other completions. Don't use +- # plusdirs quite yet if fallback is in use though, in order to not ruin +- # the fallback condition with the "plus" dirs. +- local opts=(-f -X "$xspec") +- [[ $xspec ]] && plusdirs=(-o plusdirs) +- [[ ${COMP_FILEDIR_FALLBACK-} || -z ${plusdirs-} ]] || +- opts+=("${plusdirs[@]}") + ++ local xspec=${1:+"!*.@($1|${1^^})"} + reset=$(shopt -po noglob) + set -o noglob +- toks+=($(compgen "${opts[@]}" -- $quoted)) ++ toks+=( $(compgen -f -X "$xspec" -- $quoted) ) + IFS=' ' + $reset + IFS=$'\n' +@@ -607,7 +595,7 @@ _filedir() + [[ -n ${COMP_FILEDIR_FALLBACK-} && -n $arg && ${#toks[@]} -lt 1 ]] && { + reset=$(shopt -po noglob) + set -o noglob +- toks+=($(compgen -f ${plusdirs+"${plusdirs[@]}"} -- $quoted)) ++ toks+=( $(compgen -f -- $quoted) ) + IFS=' ' + $reset + IFS=$'\n' diff --git a/bash-completion-rpmlintrc b/bash-completion-rpmlintrc new file mode 100644 index 0000000..db6c497 --- /dev/null +++ b/bash-completion-rpmlintrc @@ -0,0 +1 @@ +addFilter("bash-completion.noarch: E: devel-file-in-non-devel-package .* /usr/share/pkgconfig/bash-completion.pc") diff --git a/bash-completion.changes b/bash-completion.changes new file mode 100644 index 0000000..73a7037 --- /dev/null +++ b/bash-completion.changes @@ -0,0 +1,1909 @@ +------------------------------------------------------------------- +Sun Apr 2 10:26:09 UTC 2023 - Callum Farmer + +- Move cmake config files to devel + +------------------------------------------------------------------- +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 + +- Add patch bsc1199724-modules.patch (bsc#1199724) + * Enable upstream commit to list ko.zst modules as well + +------------------------------------------------------------------- +Fri Jan 28 19:19:55 UTC 2022 - Dirk Müller + +- remove PS1-completion-boo903362.patch as it breaks on non-bash + shells and the original problem in + bsc#903362#c9 does not occur anymore +- add versioned dependency to bash versions that have the fix + +------------------------------------------------------------------- +Mon Oct 4 13:42:40 UTC 2021 - Dr. Werner Fink + +- Add patch boo1190929-9af4afd0.patch for boo#1190929 + add support for compeletion modinfo completion recognize .ko.zst + as well as .ko.bz2 + +------------------------------------------------------------------- +Mon Sep 28 15:32:10 UTC 2020 - Dominique Leuenberger + +- Convert to _multibuild. The pre_checkin.sh script was quite + broken anyway and it was less effort to convert than to try to + fix that one. + +------------------------------------------------------------------- +Mon Sep 28 14:37:58 UTC 2020 - Dominique Leuenberger + +- Do not BuildRequire util-linux: there is no need to have this in + the build root. +- Drop cmake BuildRequires: this is only here for the + /usr/share/cmake directory ownership, which in turn even causes + problems of left-over directories (e.g. install bash-completion, + on a system without cmake, uninstall bash-completion, + /usr/share/cmake remains left on the disk). + +------------------------------------------------------------------- +Tue Aug 18 23:13:19 UTC 2020 - Matthias Eliasson + +- Update to version 2.11: + * _known_hosts_real: check that ruptime is present before calling + (#390) + * totem: reuse kaffeine completions (#372) + * __reassemble_comp_words_by_ref: avoid triggering nounset on + indirect references + * lintian: complete paths for Ubuntu's .ddeb and Debian's buildinfo + files (#397) + * ip: complete route add table arg + * ip: style fixes similar to ip-netns + * ip: add more completions for ip-rule + * ip: add support for netns (#391) + * ip: improve completion of route subcommands (#326) + * unzip, zipinfo: complete *.aar (#428) + * ssh: add new -Q completions in OpenSSH 8.2p1 (#400) + * python: support executables with minor version (#389) + * insmod, modinfo, modprobe: support xz compressed modules (#401) + * tshark: complete -r arg with all filenames (#422) + * openssl: update -starttls completions (#403) + * _filedir*: update link to bug-bash discussion on -X (#404) + * test/python: add testcase for submodule completion + * Release 2.11 + * extra/make-changelog: check and output usage message + * pre-commit: anchor exclude patterns + * pytest: rewrite in bash, support toplevel funcs, avoid nondef ones + and classes + * test/xfreerdp: skip --help failure cases + * test/tshark: fix multiple -O completion with no http2 support + * test/ant: avoid complete-ant-cmd.pl interference with ANT_ARGS + * _xinetd_services: avoid nounset error on bash 4.2 + * pre-commit: upgrade isort to 5.1.4 + * pre-commit: upgrade pyupgrade to 2.7.2 + * pre-commit: add pyupgrade, run it + * test/ant: gitignore all target cache files + * _known_hosts_real: exclude Host negations + * pre-commit: upgrade isort to 5.0.7 + * pre-commit: update shellcheck-py URL + * test/inputrc: do not set print-completions-horizontally + * test/inputrc: comment typo fix + * pytest: complete async test class methods + * __get_cword_at_cursor_by_ref: fix regression on bash 4.2 + * test: upgrade markdownlint-cli to 0.23.2 + * _known_hosts_real: avoid errors in nounset mode on Ubuntu 14 and + 16 + * _longopt: exclude too many dashes, allow underscores, require ends + with alnum + * _included_ssh_config_files: support globs + * _known_hosts_real: prevent unwanted pathname expansion on host + entries + * test/shfmt: upgrade to 3.1.2, reformat with it + * test/_known_hosts_real: add explicit no globbing test case + * test: upgrade mypy to 0.782 + * CONTRIBUTING.md: add posix and nounset mode item + * test: upgrade mypy to 0.781 + * test: upgrade perltidy to 20200619 + * _known_hosts_real: fix completion of Host entries after a wildcard + etc + * _known_hosts_real: fix # handling in ssh configs + * test: upgrade flake8 to 3.8.3 + * test/xhost: multiple expected result handling fixes + * test/slapt-src: single expected result handling fixes + * test: partial hostname completion fixes + * test: simplify completion parsing + * test/dpkg-query: mark as xfail on non-Debian based systems + * .gitignore: clean up some no longer needed ignores + * test/lspci: skip -A arg test if lspci fails -A help, e.g. busybox + lspci + * test: regex escape our magic mark for completeness + * test: upgrade mypy to 0.780 + * test/_known_hosts_real: don't modify class scoped base expected + list + * test/_known_hosts_real: reset COMP_KNOWN_HOSTS_WITH_HOSTFILE + between tests + * test/_known_hosts_real: tolerate duplicates + * bash_completion: trivial cleanups + * gcc: avoid errors in nounset mode + * pytest: fix test class method completion with BSD awk + * man, mutt: avoid errors in nounset mode on Ubuntu 14 and 16 + * java, make: avoid errors in nounset mode on Ubuntu 14 and 16 + * README: document GNU make build requirement + * pytest: add test class method completion + * _known_hosts: avoid errors in nounset mode and no arguments + * bash_completion: fix array set checks with empty elements in them + * *: avoid more errors in nounset mode + * cfrun: fix $hostfile leak + * _command_offset, route: cleanups + * *: avoid more errors in nounset mode + * qemu: add -machine arg completion + * qemu, sbopkg: avoid unintentional globbing on option arg + completions + * test: enable shellcheck SC2035 + * *: drop support for bash 4.1 + * _init_completion: fix unassigned redirect completion in nounset + mode + * ip: route shfmt, arithmetic evaluation + * _filedir: avoid unbound variable error on Ubuntu 14 and 16 + * _pids, _pgids, _pnames: improve shfmt formatting + * scp, sftp, ssh: fix completion on options bundled with -4/-6 + * modprobe, tshark, _included_ssh_config_files: use [[ ]] instead of + [ ] + * test/runLint: warn about [ ] instead of [[ ]] use + * test: skip various tests if we don't get a useful usage message + * *: mark nounset mode as supported, issues with it are bugs now + * *: avoid more errors in nounset mode + * *: avoid more errors in nounset mode + * *: avoid more errors in nounset mode + * test/inputrc: comment and whitespace tweaks + * *: avoid more errors in nounset mode + * test/unit: sort files included in dist + * test/unit: include test_unit_known_hosts_real.py in dist + * bash_completion: line wrapping tweaks, NFC + * 7z: fix -o/-w attached arg completion + * postfix: try to arrange a fake tty so we can tickle the usage + message out + * _bashcomp_try_faketty: new function to try running command with a + fake tty + * mr: avoid herestrings, simplify command parsing + * test/mr: handle missing "clean" with skipif + * test: mark known non-ASCII issues with test suite as xfail + * dpkg-deb: add --raw-extract and -X arg completions + * test: add some dpkg-query test cases + * dpkg-deb: fix --show/-W completion + * test: upgrade markdownlint-cli to 0.23.1 + * *: use more arithmetic evaluation + * test: try harder to restore environment and cwd on failures + * *: use $ifs for storing/restoring $IFS + * test/irb: xfail options test if --help is not available + * test: upgrade flake8 to 3.8.1 + * test: pre-commit config cleanups, ordering + * test: upgrade pre-commit to 2.4.0+, drop shfmt kludge + * test: sync shfmt and shellcheck configs + * test: shfmt bashrc + * test: remove unused run-shellcheck, shellcheck is in pre-commit + now + * test: remove old test suite code no longer used \o/ + * test/_known_hosts_real: port remaining test cases to + pytest+pexpect + * test: remove more no longer needed old test suite code + * test/_known_hosts_real: port more test cases to pytest+pexpect + * test/_get_cword: port remaining test case to pytest+pexpect + * test: replace some echos with printfs + * test/_filedir: fix shutil.rmtree on Python < 3.6 + * test/_expand: port remaining test cases to pytest+pexpect + * test: drop some no longer needed old test suite code + * test/_filedir: port remaining test cases to pytest+pexpect + * test: run all Travis jobs on dist: bionic + * test: drop not needed sudo on Travis + * test/_filedir: port more test cases to pytest+pexpect + * test/__expand_tilde_by_ref: port remaining test cases to + pytest+pexpect + * test/_get_comp_words_by_ref: convert remaining test cases to + pytest+pexpect + * test: run pytest --verbose in docker + * lftp: use "bookmark list" command to list bookmarks + * test: drop some no longer needed old test suite code + * test/slapt-src: convert remaining test case to pytest+pexpect + * _xfunc: simplify + * apt-cache: avoid nonzero exit code from _apt_cache_packages + * test/slapt-get: convert remaining test case to pytest+pexpect + * test/secret-tool: add to test command list + * test/scp: port remaining test case to pytest+pexpect + * test/umount: convert remaining test case to pytest+pexpect + * secret-tool: new completion + * apt-get: complete build-dep with dirs + * travis: use golang 1.14 for shfmt + * *: run all shell code through shfmt -s + * pre-commit etc: add shfmt + * test: fix incorrect fixtures/shared/default xfails/expectations + * test: upgrade markdownlint to 0.23.0 + * nmap: simplify help scraping a bit, don't try to emit unnecessary + newlines + * test: prefix fake test commands with underscore + * test: port most umount test cases to pytest+pexpect + * test: add note about unescaped assert_complete single return + values + * editorconfig: apply yaml settings to .yaml too + * pre-commit: use local perlcritic hook + * *: doc and comment link updates + * pre-commit, *.md: add markdownlint, address findings + * README: clarify loading automatically on demand + * ssh-keygen: -O arg updates and improvements + * ssh-keygen: add -b arg completions according to specified -t + * ssh-keygen: option and arg completion updates for new versions + * _command: improve commentary + * reportbug, scp, sftp, svn: use compgen -c instead of _command + * find: fix -exec etc argument and its completion + * extra: trigger docker builds only on test-cmd-list.txt changes + * test: add script to maintain list of executables for full test + coverage + * test: run lint tests on Travis in a quickish separate first stage + * test/make: mark more cases as requiring command + * make: add bmake alias + * test: run pre-commit on host instead of docker + * test: add perlcritic to pre-commit, run on all perl + * *: remove some unused variables, thanks to shellcheck SC2034 + * *: various loop iteration improvements + * crontab: fix loop over already given args + * apt-cache: fix command mode handling + * doc: add loop variable naming guideline + * test: make at-point completion tests easier + * ssh, xsltproc: address shellcheck SC2006 + * scp: work around shellcheck SC1003 + * mutt: address shellchec SC2236 + * wget: address shellcheck SC2116 + * pytest: address shellcheck SC2002 + * bash_completion, java, tipc: for loop whitespace consistency + tweaks + * *: more arithmetic evaluation cleanups, thanks to shellcheck + SC2004 + * __reassemble_comp_words_by_ref, java: address and work around + shellcheck SC2102 + * test: enable parallel pre-commit shellcheck + * test: remove shellcheck severity filter, add explicit disables + instead + * doc: recommend arithmetic evaluation + * *: array subscript cleanups + * ssh-keygen: -s and -n completion improvements + * *: enable and address shellcheck SC2053 + * bash_completion, invoke-rc.d, svcadm: trivial cleanups + * *: replace various conditional expressions with arithmetic + evaluation + * carton: fix command parsing with BSD sed + * nmap: fix option parsing with BSD sed + * test/alias: port remaining test case to pytest+pexpect + * test: generalize complete at point test + * test/cd: fix test_dir_at_point for setups that repeat "trailer" + * pytest: add some option arg (non-)completions + * pytest: complete test classes + * pgrep, pkill: add --ns and --nslist arg completions + * test: run skipif and xfail commands without caring if they output + or not + * test: make it possible to not care whether command did output or + not + * test/xfreerdp: skip xfreerdp kbd test if kbd-list returns empty + * test: tolerate duplicates from compgen actions + * test: bump shellcheck severity to warning + some disables + * *: address shellcheck SC2046 + * test/lib/library.sh: address shellcheck SC2125 + * java, pkgadd, sysbench: address shellchec SC2124 + * scp: address shellcheck SC2089 and SC2090 + * _filedir_xspec: address shellcheck SC2140 + * rpm, ssh, umount.linux: address shellcheck SC2120 + * cvs, modprobe, sh: address shellcheck SC2209 + * mutt: address shellcheck SC2088 + * _upvar, _upvars, _variables, rpm: address shellcheck SC1083 + * test/run: address shellcheck SC2164 + * renice: address shellcheck SC2254 + * tipc: comment grammar and spelling fixes + * man, perl, route, tipc: address shellcheck SC2053 + * info, java: address shellcheck SC2153 + * quote_readline: fix $ret leak + * test: upgrade shellcheck to 0.7.1 + * test/printenv: xfail if --help doesn't contain options (e.g. + busybox) + * test/aptitude: require command where necessary + * _known_hosts_real, op: address shellcheck SC2184 + * test: don't run shellcheck on completions/.gitignore + * protoc: complete all --*_out without more specific handling with + dirs + * sysbench: add --test= deprecation TODO + * pkgadd: indentation fix + * chronyc, wvdial: address shellcheck SC2178 + * java, pkgadd, sysbench: address shellcheck SC2124 + * mplayer: address shellcheck SC1078 false positive + * smartctl: hush shellcheck SC2054 false positives + * *: address shellcheck SC2221 and SC2222 + * bash_completion: address shellcheck SC2220 + * crontab, wodim: silence shellcheck SC2191 and SC2192 + * aptitude: add some option arg (non)completions + * aptitude: parse options list from --help, hardcode less + * test/aptitude: add some test cases + * *: argument interation improvements + * *: whitespace tweaks + * apt-get etc: use _apt_cache_packages from apt-cache + * pre-commit: run most python checks on helpers/python too + * test/ldd: xfail if --help is not implemented + * test/printenv: require command for arg completion test + * printenv: indentation fixes + * test: upgrade mypy to 0.770 + * test: split dependencies requiring Python 3.6.1+ to requirements- + dev.txt + * git: trigger docker rebuild on pre-commit config change + * test: require openssl command for option argument tests + * test: move perltidy to pre-commit, run with --converge + * test: move shellcheck to pre-commit + * test: ignore flake8 messages that are in black's domain + * _xinetd_services: look up from $BASHCOMP_XINETDDIR, add some unit + tests + * printenv: new completion + * copyright: add 2020 + * test: fix CompletionResult.__eq__ UnboundLocalError + * test: run pre-commit in tools container + * test: shellcheck tweaks + * test: add isort to pre-commit, run it + * test: add flake8-bugbear + * test: install black for Python 3.6 too + * pre-commit: add config with black, flake8, and mypy + * test: drop redundant black args from docker runs + * *: python type hint fixes and improvements + * extra/make-changelog: run through black + * test/totem: add basic test case + * test/cd: remove unused import + * openssl: complete -writerand with filenames + * openssl: parse available options from $command -help + * openssl: support getting digest list from more recent openssl + versions + * nmap: handle options split on equals sign + * nmap: parse options from -h output + * test/cd: make dir_at_point produce better debuggable failures + * test/cd: convert remaining test case to pytest+pexpect + * test: remove some no longer needed old test suite code + * test/chown,sudo: parametrize special case test, improve xfail + targeting + * test/tsig-keygen: require command for test_options + * test/upgradepkg: port remaining test case to pytest+pexpect + * tsig-keygen: new completion + * test: host helper lint and usage fixes + * test: port some _known_hosts_real unit tests to pytest+pexpect + * test: remove some no longer needed tcl/expect code + * test: fix spurious hosts fixture failure without avahi-browse + installed + * test: port some scp test cases to pytest+pexpect + * test: port remaining finger, sftp, ssh, and xhost cases to + pytest+pexpect + * lilo: work around shellcheck false positive + * test/ipcalc: fix tests with busybox ipcalc + * chromium-browser, firefox: complete on *.txt (#379) + * README.md: add introduction + * ipcalc: new completion + * *: complete commands when prefixed with a backslash + * test/wol: don't fail MAC test if test system has /etc/ethers + entries + * test/dnssec-keygen: allow more alternatives in algorithm + completion + * lilo: don't complete on commented out labels + * lilo: honor -C when completing labels + * lilo: add -B and -E completions + * Source user completion only if it's a file (#409) + * jarsigner: complete on *.apk too (#386) + * cryptsetup: add luksChangeKey arg completion (#380) +- Refresh and reorder all patches and use autosetup macro +- Run spec-cleaner + * Remove rpm groups + +------------------------------------------------------------------- +Tue Jun 23 13:01:29 UTC 2020 - Dominique Leuenberger + +- Modify qdbus-qt5.patch: only modify Makefile.am; Makefile.in is + auto-generated based on the .am file. +- Add libtool BuildRequires and explicitly call autoreconf: unless + we do this, there is a chance that the build modifies the above + mentioned .am and .in files with different timestamps, which in + turn triggers an implicit autoreconf. Without libtool present + though, this will fail. + +------------------------------------------------------------------- +Tue May 12 08:20:39 UTC 2020 - Dirk Mueller + +- fix extra tokens at the end of %endif directive build errors + +------------------------------------------------------------------- +Mon Apr 13 09:54:50 UTC 2020 - Fabian Vogt + +- Improve patch to fix lookup of qdbus-qt5 completion, previously + it was only loaded if qdbus was used first: + * qdbus-qt5.patch + +------------------------------------------------------------------- +Sat Mar 28 15:01:27 UTC 2020 - Michal Suchanek + +- Fix completion excluding directories (boo#1167952). + * bash-completion-fix-missing-directory-completion-with-filename-pattern.patch + +------------------------------------------------------------------- +Fri Mar 13 09:34:01 UTC 2020 - Fabian Vogt + +- Add patch to also complete qdbus-qt5: + * qdbus-qt5.patch + +------------------------------------------------------------------- +Fri Jan 17 09:56:00 UTC 2020 - Dr. Werner Fink + +- Remove _adb as it seems to be broken anyway (boo#1161136) + +------------------------------------------------------------------- +Sun Jan 5 17:01:37 UTC 2020 - Martin Liška + +- Update to version 2.10: + * perltidy: associate *.t (#338) + * perl: fix completion with space between option and argument + * _variables: add TERM and LC_* completion (#353) + * autotools: Replace pkgdatadir with datadir + * pkg-config: Relative paths + * pkg-config: generate Name from autotools PACKAGE + * ssh: option and argument completion updates (#332) + * test_arp: Skip if ARP tables are empty + * test_chromium_browser: Skip test_2 if 'chromium-browser --help' + fails + * test_rpm2tgz: Fix expected output + * cppcheck: Add new standards to --std option. (#356) + * apt-get: fix pkg version completion if it contains a colon (#351) + * test: bump black to >=19.10b0 + * ssh, scp, sftp, ssh-copy-id, curl: improve identity file + completion + * update-rc.d: indentation fix + * update-rc.d: remove dead code + * screen: add serial device basic arg (non)completion + * screen: add //telnet completion + * test: add some trivial perl -E/-e cases + * perl: indentation fixes + * curl: make @filename completion do the right thing with dirs + * _filedir: avoid duplicate dirs internally, and a compgen -d call + for files + * _filedir: remove unused $x + * bash_completion.sh: shellcheck SC2086 fixes + * test: shellcheck config cleanups + * shellcheck: add some option arg (non)completions + * test: fix cpio users test in presence of usernames with whitespace + * test: python typing fixes + * test: add minimal mypy config + * .gitignore: mypy cache + * makepkg: fix option completion + * test: mark dcop and mr testcases requiring the cmd as such + * CONTRIBUTING: disable e-mail bug gateway due to spam + * carton: new completion + * op: direct command parsing stderr to /dev/null + * test: adjust java expectations based on whether jars can be listed + * valgrind: look tool names from lib/*-linux-gnu dirs too + * test: xfail locale-gen option completion if --help is not + available + * _sysvdirs: always return 0 + * java: don't assume jar is installed + * travis: test with Debian 10 + * wine: install for wine-development and wine-stable too + * travis: generate dist tarball on alpine + * dmypy: new completion + * test: add require_longopt xfail helper, use it + * test: mark more tests that parse command output as requiring + command + * sysctl: invoke completed sysctl instead of one from path to get + variables + * screen, smartctl, update-alternatives: _parse_help, drop hardcoded + option list + * lintian-info: _parse_help, add more option arg (non)completions + * gprof: _parse_usage, drop hardcoded option list + * test: fix retrieving command to test from request + * travis: pass NETWORK as env var, so we can actually use it + * test: xfail MAC address completion without networking + * test: ignore _makepkg_bootstrap in makepkg test env + * test: hush flake8-bugbear B010 + * test: don't sort expected completion lists under the hood + * test: add bunch of basic option parsing test cases + * test: always run tests which don't require tested command + * test: explodepkg and upgradepkg test fixes + * test: mark sbcl-mt xfail due to whitespace split issues + * _terms: search directly from various terminfo dirs + * _terms: combine and simplify somewhat + * pkg-get: fix $i leak + * pkgutil: fix $i leak + * test: portinstall/upgrade test case and setup fixes + * lvm pv*, vg*: parse help instead of hardcoding option list + * ipv6calc: parse help instead of hardcoding option list + * test: avoid some sed -r/-E runLint false positives + * test: use sh +* as ccache command test case + * java: make jar/zip listing work with unzip + * test: installpkg test fixes + * test: fix acroread fixture dir + * test: remove unnecessary returns after pytest.skip + * test: avoid gnome-mplayer core dump on Ubuntu 14 + * xvfb-run: new completion + * test: skip gssdp-discover --message-type when option not available + * test: expect failures for bc without --help useful with _longopt + * test: don't expect a .tox dir in fixture + * test: drop sourcing our no longer existing profile.d script + * tox: include -- in option completions + * tox: complete defaults after a -- + * gssdp-discover: new completion + * test: register our pytest markers to hush warnings from 4.5+ + * test: fix required pytest version + * ip: invoke the tool as $1 + * README: drop distro badges, link to Repology instead + * chromium-browser: add --proxy-server arg completion + * test: source our profile.d test env script in docker + * influx: new completion + * README: badge title tweaks + * tox: do simple parse on tox.ini if --listenvs* yields nothing + * test: add basic tox fixture + * man: fall back to _parse_usage for _parse_help + * test_wsimport: xfail options test on unparseable -help + * test: don't try to install black on Python < 3.6 + * pgrep: fix fallback to _parse_usage + * test: xfail unparseable mock and munin-node-configure --help cases + * test_pwdx: xfail more unparseable help cases + * build: make pytest executable configurable, look for pytest-3 too + * test: enforce minimum pytest version + * test: zopflipng flake8 fix + * test: xfail getent and pwdx option completions with unparseable + --help + * test: add more basic _parse_help use test cases + * test: add bunch of basic _parse_help use test cases + * .gitignore: add configure.lineno + * badblocks: fix $i leak + * postfix: option completion is expected to fail at the moment + * cal: try _parse_help before _parse_usage + * test: add bunch of basic _parse_usage use test cases + * chsh, pwck: try _parse_help before _parse_usage + * test: add basic autossh test + * test: convert more _filedir unit tests to pytest+pexpect + * test: flake8 fix + * test: convert bunch of _filedir unit tests to pytest+pexpect + * test: convert finger partial test case to pytest+pexpect + * README: add some badges, tweak existing + * test: port _variables unit tests to pytest+pexpect + * test: port compgen and quote tests to pytest+pexpect + * iconv, lz4, tipc, xsltproc: replace some seds with compgen -X + * test: disallow Alpine failure on Travis + * _pnames: adapt for busybox ps, rewrite in pure bash + * test: run our docker script in test containers by default + * test: use one Dockerfile for all dists + * test_ifup: accept short option completions too + * timeout: fallback to _parse_usage from _parse_help + * test_wget: test --s instead of --h + * test_lsusb: xfail with unparseable --help + * test: expect failures for various completions without useful + --help + * test: support xfail in our markers like skipif, use it a lot + * test: add Alpine Linux container, allow failures for now + * iconv: weed out ... from encoding completions + * test_iconv: add basic file completion test + * test_iconv: skip option completion if --help fails + * test_getconf: skip if -a doesn't output any POSIX_V* + * test_feh, test_makepkg: invoke grep as "command grep" + * test: generalize check whether we're being run in a container + * tar: simplify locating tarball from command line + * pkg_delete: don't limit to FreeBSD + * test: reformat test_chromium_browser.py source + * test: set up BASH_COMPLETION_COMPAT_DIR in bashrc (only) + * test: more thorough system location interference avoidance + * test: bashrc comment and whitespace tweaks + * build: makefile whitespace tweaks + * build: really reset return value before completions check + * build: simplify symlink setup + * tar: add missing bsdtar, gtar, and star symlinks + * README: use light gray badges for unknown versions + * README: link to cygwin package + * ri: hush some warnings + * unrar: complete on *.exe (#337) + * chromium-browser: Add support for .mhtml files + * screen: complete first arg with serial devices + * gcc: support new --completion option (#222) + * unzip, zipinfo: complete *.aab (#340) + * cppcheck: Remove deprecated option 'posix' for '--std=' +- Remove gcc-564d068.patch and sh-script-completion-boo977336.patch + as these are implemented upstream. +- Update to version 2.9: + * dpkg-source: Add --before-build --after-build --commit, and + --print-format + * xm: Deprecate completion for obsolete command (#284) + * _filedir_xspec: Fallback to suggesting all files if requested + (#260) + * tar: Support completions for zstd compression extensions (#255) + * dpkg: List held packages (#250) + * cvs: Add completion for the log command + * unzip, zipinfo: Associate with *.xar (eXist-db application + package) (#257) + * mplayer: Associate with *.w64 + * okular: Added support for xz-compressed files. + * _xspecs: Declare as global on bash >= 4.2 + * test: Increase expect pty to 160 columns + * test: avoid interrupting magic mark output + * 7z: add .msi support + * tshark: speed up tshark -O completion + * tshark: fix completion of -Xlua_script option + * tshark: Support preferences (-o) completion with memoization + * test: fix misinterpretation of completion output in tests + * test: fix flake8 complaints about unused imports + * conftest: fix RemovedInPytest4Warning due to use of + node.get_marker + * chromium-browser: consider chrome and chromium as aliases + * tshark: support .gz and .cap files for -r expansion + * tshark: prevent a single-character file from breaking -G + completion + * tshark: update -T and -t completions + * man: Fix completion when failglob option is enabled (#225) + * mplayer: Add common supported module music formats + * _longopt: pick first long option on a line, not last + * *: avoid shellcheck SC1007 and SC1010 + * 7z: add some TODO notes on parsing "i" output for extensions + * ssh: make -o protocol completion less hardcoded + * ssh: make option completion case insensitive + * ssh: fix suboption completion with combined -*o + * xvnc4viewer: code cleanups + * doc/testing: remove lots of legacy info, add some new + * CONTRIBUTING: add upstream vs bash-completion considerations + * CONTRIBUTING: note runLint and run-shellcheck + * __parse_options, 7z: avoid herestrings + * arp, ccze, ifstat, inotifywait, makepkg: invoke sed with "command" + * shellcheck: disable bunch of warnings when in "-S warning" mode + * test: move default shell option from run-shellcheck to + .shellcheckrc + * test: make runLint search for herestrings + * tar, valgrind: avoid some herestrings + * travis: run shellcheck on bash_completion.sh.in too + * travis: fail on shellcheck errors + * make: quote eval array definitions to work around shellcheck + SC1036 bug + * test: add make -C test case + * *: shellcheck error fixes + * _included_ssh_config_files: store found included files in an array + * _included_ssh_config_files: doc grammar fixes + * test: add invoke-rc.d test case for not repeating already given + options + * ebtables: improve existing table arg parsing + * test: add script to run shellcheck, run it in Travis, allowing + failure for now + * iptables: improve existing table arg parsing + * test: shorten long gdb test core file name so tar doesn't croak on + it + * AUTHORS: remove unrelated project association from my entry + * apt-get: protect source against regex specials + * mypy, mysql, xmms: don't complete unknown split long option args + * synclient: remove unused local variable "split" + * test: adjust _get_comp_words_by_ref test to changed error output + * apt-cache: protect showsrc against regex specials + * test: improve tshark -O arg completion test + * tshark: ignore stderr when parsing -G, -L, and -h output + * *: error output consistency, use bash_completion prefix + * _upvar: deprecate in favor of _upvars + * *: add missing "ex: filetype=sh" + * phing: fix getting just a tab for options on CentOS 6 + * phing: don't complete -l with files + * various: apply file vs dir special cases also when invoked with + full path + * *: whitespace tweaks + * ssh: don't offer protocol v1 specific options if it's not + supported + * test: add some gdb non-core files + * _parse_help: look for long options somewhat more eagerly + * gdb: relax core filename pattern + * test/tools: fix exit status incrementation + * *: arithmetic expression related cleanups + * test/tools: run all tools, don't stop at first failure + * test: check for perltidy errors and warnings + * *: format Perl code with perltidy + * *: format Python code with black + * .dir-locals.el: use flycheck-sh-bash-args + * valgrind: look up tools from libexec dirs too + * *: make _parse_usage fallbacks more concise + * svn, svk, wget: use _iconv_charsets + * *: spelling fixes + * msynctool: code cleanups + * *: remove whitespace after redirections + * *: remove spaces immediately within $() + * bzip2: recognize *.tbz2 as bzipped + * modprobe: module parameter boolean values + * ping, tracepath: parse options primarily with _parse_help + * ulimit: new completion + * shellcheck: new completion + * dnssec-keygen: new completion + * modprobe: append = to module parameter completions + * test: include test_unit_longopt.py in dist + * test: add some _longopt unit tests + * _longopt: simplify regex, use printf instead of echo, drop + unnecessary sort + * nsupdate: new completion + * _longopt: don't complete --no-* with file/dirname arg + * copyright: add 2019 + * pytest: complete --pythonwarnings/-W arg + * python: make warning action list reusable + * test: use pytest-xdist + * extra: add git pre-push hook for triggering Docker Hub builds + * post-commit: trigger on test/requirements.txt too + * pytest: complete pytest-xdist --dist, --numprocesses, and + --rsyncdir + * test: remove no longer needed completion/*.exp + * xfreerdp: reinstate support for old versions with dash option + syntax + * test: rewrite "generate" in Python, fix trailing backslash in + EXTRA_DIST + * test: sort t/Makefile.am EXTRA_DIST in C locale + * ssh: support RemoteCommand and SyslogFacility options + * test: Expect failure for chown all users test as non-root + * test: Fix declare test case with bash 5.0 + * adb: Deprecate in favor of one shipped with the Android SDK + * xfreerdp: Update for more modern xfreerdp + * jsonschema: New completion + * test: Remove unnecessary ri xfail + * test: Clean up man tmp dir + * .gitignore: Add .python-version (for pyenv) + * test: Remove unnecessary autouse=True from fixtures + * ifstat: Make work with iproute2 version + * iperf, iperf3: Add some option arg (non-)completions + * test: Fix test generation wrt results checking improvements + * ifstat: New completion + * __parse_options: Avoid non-zero exit status + * test: Refactor/improve completion results checking + * test: Match Python's default locale unaware sort in bash setup + * test: Rename completion.line to .output + * test: Add man failglob test case + * test: Add pre_cmds support for completion fixture + * inotifywatch: New completion, common with inotifywait + * inotifywait: Fix -e completion with BSD sed + * inotifywait: Avoid some false positive event names + * test: extend _ip_addresses unit tests some + * _ip_addresses: Avoid completing ipv4 ones with -6 + * inotifywait: New completion + * test: Mark some xfails based on if in docker instead of in CI + * test: Skip ifup options test if it doesn't grok --help, not in CI + * test: Clean up and docker-ignore __pycache__ dirs + * build: Include test/t in dist tarball + * test/t: Avoid trailing backslash in Makefile.am's to appease + automake + * test: Remove some no longer used old test suite code + * _xspecs: Simplify bash version check + * chmod: Fix "-" completion + * sysctl: Treat -f as alias for -p/--load + * .gitignore: Add pytestdebug.log + * chmod: Fix file completion after modes starting with a dash + * _count_args: Add 3rd arg for treating option-like things as args + * test: Fix _count_args test_7 to test intended case + * pydocstyle: New completion + * Travis: Remove unused PYTEST env var + * doc: Note email issues gateway + * tcpdump: Various option and their arg completion updates + * test: Fix arp CI (non)expectations, remove redundant test case + * test: Be more consistent with "CI" env var examination and xfails + * arp: New completion, somewhat incomplete + * test: Expect failure in gkrellm if there's no X display + * doc: Update docs on generating simple tests + * doc: Some test dependency doc updates + * test: Add requirements.txt for installing dependencies + * grpck: Parse options with _parse_help, falling back to + _parse_usage + * grpck: Add --root/-R arg completion + * test suite: Ignore _scp_path_esc in env for ssh-copy-id + * ssh-copy-id: Add -i and -o arg (non-)completions + * tar: Clean up some redundant code + * cancel: Split long line + * cancel: Add some option arg (non-)completions + * locale-gen: New completion + * makepkg: Don't apply to other than Slackware makepkg + * test: Allow unknowns options in makepkg option completion + * makepkg: Use _parse_help instead of hardcoding option list + * mypy: New completion + * op: New completion + * hunspell: New completion + * xmllint: Improve --encode, --pretty, and --xpath arg + (non-)completions + * test: Remove leftover completion/ls.exp + * gcc: Add g++, gcc, gccgo, and gfortran *-[568] aliases + * perlcritic: New completion + * gnome-screenshot: New completion + * isort: New completion + * freeciv: Option and arg completion updates + * freeciv-gtk2: Install for freeciv and freeciv-gtk3, rename to + freeciv + * mplayer etc: Complete on *.crdownload partial downloads in + addition to *.part + * chromium-browser, google-chrome*: New non-xspec completion + * firefox etc: New non-xspec completion + * Merge branch 'master' into wip-pexpect + * nc: Add some more option (non-)completions + * test: Mark MANPATH without leading/trailing colons test an xfail + on CI CentOS 6 + * test: Remove kill, killall remnants + * test: Make case specific env entries shell code, not escaped + * Merge branch 'master' into wip-pexpect + * unzip, zipinfo: Associate with *.whl + * __load_completion: Avoid unnecessary lookups from nonexistent dirs + * Merge branch 'master' into wip-pexpect + * gcc: Add g++, gcc, gccgo, and gfortran *-7 aliases + * test: Use test_unit_* prefix for unit tests, to avoid name clashes + * test: Support setting cmd=None to require no command, for unit + tests + * test: Misc test suite fixes + * test: Fix jq and scrub skipif commands + * test: Don't require complete marker on test methods + * test: Add support for per-test env modifications + * test: Use more conventional Python file names for tests + * test: Sort completion results in Python for ease of use in Python + tests + * test: Allow __load_completion to fail + * test: chdir to fixtures dir in Python as well + * test: Mark xfreerdp as expected failure for now + * test: Replace + with Plus in test class names + * test: Implement load_completion_for using assert_bash_exec + * test: Add ability to selectively ignore diffs in environment + * test: Fixture reorganization + * test: Pass through $HOME and $DISPLAY to test bash + * test: Log pexpect interaction to $BASHCOMP_TEST_LOGFILE if set + * test: Rename BASHCOMP_* test env variables to BASHCOMP_TEST_* + * test: Add python3 test case + * test: Add class level skipif based on bash exec result + * test: Include command name in test class name, use numbered test + method names + * test: Fix some regressions introduced in recent test conversions + * test: Add support for running test case in a specified dir + * test: Add support for skipping individual tests based on shell + command status + * test: Make test base work with Python 3.3+ + * test: Add some iperf, iperf3 and xmodmap test cases + * xmodmap: Use _parse_help instead of hardcoded option list + * iperf: Improve client/server specific option parsing + * iperf: Install for iperf3 too + * iperf: Add g/G to --format completions + * xmodmap: Use _parse_help instead of hardcoded option list + * iperf: Improve client/server specific option parsing + * iperf: Install for iperf3 too + * iperf: Add g/G to --format completions + * test: Use /root/.local/bin/pytest on ubuntu14 by default + * test: Add generated test files to t/Makefile.am automatically + * test: Add new test files to EXTRA_DIST + * test: Use /root/.local/bin/pytest on centos6 by default + * test: Use make pytest docker executable env-configurable, default + pytest-3 + * test: Update generate for pytest+pexpect + * test: Convert majority of test cases to pytest+pexpect + * tox: Fall back to --listenvs for env list if --listenvs-all fails + * git-post-commit: Avoid some error trash when HEAD is not a + symbolic ref + * test: Add pylint-3 test case + * test: Limit number of pylint option completions + * pydoc, pylint: Determine python2/3 based on command basename only + * pylint: Bring -f/--format arg completion up to date with pylint + 1.9.2 + * pylint: Implement comma separated --confidence arg completion + * test: Fix buffer size option listing in run --help + * test: Bump expect's match_max to 20000 by default + * test: Run docker tests with --verbose + * _services: Try systemctl list-unit-files if systemctl list-units + fails + * extra/git-post-commit.sh: Add git post-commit Docker Hub trigger + hook + * gpgv: New completion + * pydoc, pylint: Skip module completion if current looks like a path + * travis: Run ubuntu14/bsd with no network + * travis: Split long lines in script + * test: Limit number of wget option completions to avoid unresolved + result + * test: Mark flake8 untested if it seems broken + * pylint: Option arg completion improvements + * tshark: Get available interfaces from -D output + * ngrep: Add "any" to -d arg completions + * fio: New completion + * test: Fix iwspy test case + * uscan: Use _parse_help instead of hardcoded option list + * urlsnarf: Add -p arg completion + * tracepath: Add -m and -p arg non-completions + * tracepath: Actually use our separate completion instead of + _known_hosts + * test: Skip jq option completion test if its --help doesn't list + them + * xdg-settings: Make help parsing work on BSD + * test: Support running with local BSD binaries, do it w/ ubuntu14 + in CI + * jq, sqlite3: Protect against negative array subscripts + * sudo: Improve long option arg handling + * sysctl: Recognize --pattern/-r and --load options + * test: Add sysctl option parsing test case + * sudo: Parse options from help/usage output, add some long option + support + * strace: Use _parse_help instead of hardcoded option list + * sshow: Add -p arg completion + * sqlite3: Add some option arg (non-)completions + * tune2fs: Update -o/-O argument lists + * jq: New completion + * reportbug: Run _parse_help and apt-cache more selectively + * querybts: Use _parse_help, not hardcoded option list, misc + improvements + * pyvenv: Support versioned 3.6-3.8 executables + * passwd: Try _parse_help before _parse_usage to parse options + * profile.d: Avoid tested variable values being confused as [ ] + operators + * cryptsetup: Add some option arg (non-)completions + * cryptsetup, nc, sh: Skip option args when counting arguments + * modinfo: Fall back to _parse_usage if _parse_help yields no + results + * mysql, mysqladmin: Complete --ssl-{ca,cert,key} option arg + * mysqladmin: Reuse --default-character-set completion from mysql + * modinfo: Use _parse_help instead of hardcoded option list + * minicom: Use _parse_help instead of hardcoded option list + * mplayer: Associate with *.S[3T]M, *.med, *.MED + * completions/Makefile.am: Use install-data-hook, not install-data- + local + * ifup etc: Add option and option argument completion + * _count_args: Add support for not counting specified option args + * ifquery: New ifup alias completion + * ngrep, tshark: Complete on *.pcapng too + * rpm: Complete --licensefiles with -q + * pytest: Rename from py.test to follow upstream recommended name + * README: Add instructions for overriding completions system wide + * README: Note $BASH_COMPLETION_USER_DIR + * test: Mark psql etc test cases untested if --help doesn't work + * aclocal, automake: Support versioned 1.16 executables + * __load_completion: Avoid bad array subscript on "commands" ending + with slash + * lzma: Use _parse_help instead of hardcoded option list + * test: Run perlcritic and flake8 on perl and python helpers in + Travis + * build: Improve cleanup of test/log and test/tmp dirs + * pkg-config: Complete on *.pc files + * build: Use AC_PROG_SED to locate sed + * build: Do cmake, pc, and profile variable replacements in Makefile + * README: Add Q/A on overriding a completion, modernize local + install answer + * json_xs: New completion + * chmod: New completion + * iperf, nc: Include IPv6 addresses in bind address completions + * links: Major rework, parse options from --help, add option arg + completion + * _ip_addresses: Add option to complete all/v4/v6 addresses, add + unit test + * wget: Remove nonexistent arg to _ip_addresses + * _filedir: Drop unnecessary evals + * iconv: Split charset completion to _iconv_charsets, add test case + * links: Install completion for links2 too + * xgamma: Comment spelling fix + * lftp: handle -s + * test: Skip scrub -p test when its --help doesn't list available + patterns + * ecryptfs-migrate-home: New completion + * scrub: New completion + * ether-wake: Install for etherwake as well + * *: Support completing arg of last bundled short option + * dselect: Parse options with _parse_help + * dhclient: Add some option arg (non-)completions + * dhclient: Parse options with _parse_usage + * chage, chpasswd: Add -R/--root arg completion + * reportbug: Add bunch of option arg (non-)completions + * .dir-locals.el: Set -O extglob for flycheck bash checks + * mount, umount: Deprecate on Linux in favor of util-linux >= 2.28 + ones + * _known_hosts_real: Reimplement known hosts file parsing in pure + bash + * test: Add comment line to fixtures/_known_hosts_real/known_hosts + * ssh: Complete all *File option args with _filedir + * README: Point Debian and openSUSE badges towards unstable and + Tumbleweed + * README: Link to various distro packages + * apt-get: Add -h/-v/-o non-completions + * apt-get: Sync option list with apt 1.5.1 + * apt-get: Simplify -t and friends completion, support Ubuntu + * apt-get: Add indextargets to list of suggested commands + * apt-get: Complete install package=versions + * ssh: Sync config option lists with OpenSSH 7.5p1, add some value + completions + * ssh: Sync query type list with OpenSSH 7.5p1 + * ssh: Order various switch cases closer to alphabetical + * completions/Makefile: Fix check-local in VPATH builds + * _filedir: Refactor to remove heredoc-dependent loop + * gccgo: Add as a GCC completion target (#227) + * xrandr: match the output name exactly for --mode + +------------------------------------------------------------------- +Fri Apr 26 08:44:42 UTC 2019 - Dr. Werner Fink + +- Add patch gcc-564d068.patch from pull request 564d068 of + Martin to upstream of bash-completion + +------------------------------------------------------------------- +Fri Mar 29 20:13:38 UTC 2019 - Martin Wilck + +- Removed bts completions (upcoming devscript package contains a + more recent one). + +------------------------------------------------------------------- +Mon Oct 22 07:06:51 UTC 2018 - Dr. Werner Fink + +- Modify patch PS1-completion-boo903362.patch to make it work with + mksh as well (boo#1104531) + +------------------------------------------------------------------- +Thu Aug 2 13:25:06 UTC 2018 - antoine.belvire@opensuse.org + +- Update to version 2.8: + * Comma separated opt arg completion improvements + * Protect _known_hosts_real from user input treated as options + * Protect shopt reset from non-default $IFS + * Add support for .lz4 extension to file-roller (#158) + * Add support for .lzo extension (--lzop) to tar (#155) + * Bump copyright years to -2018 + * README.md: Whitespace cleanup + * Whitespace + * __expand_tilde_by_ref: Eval tilde expansion only, simplify + * __load_completion: Code cleanup + * __load_completion: Load "xspec" completions dynamically too + * _avaiable_interfaces: Get rid of eval + * _expand: Reuse __expand_tilde_by_ref and _tilde logic, clean up + * _known_hosts_real: Add option to filter IPv4 and IPv6 addresses + * _known_hosts_real: Document -a better + * alias: Fix completion followed by = (#146) + * apt-get: Complete *.deb on install if argument contains a slash + * aptitude-curses: Use aptitude completion + * aptitude: Add keep to commands list (Debian: #867587) + * bzip2, gzip, and other compressors: Use _tilde instead of _expand + * ccze: New completion + * cryptsetup: Update option lists + * curl: Fix -x etc option argument hostname completion + * dd, find, gcc: Remove unnecessary tilde expansion + * dd: Omit space only when offering one completion ending with = + * dpkg-query: Fix -W/--show completion + * dpkg: Add -V/--verify arg completion + * dpkg: Complete --vextract on deb files + * dpkg: Fix man page section in comment + * ebtables: new completion (#150) + * flake8: Various option arg completion improvements + * geoiplookup: New completion + * getconf: New completion + * groupdel: Parse and handle long options + * info, man, rsync: Defer _expand invocation + * iptables: Avoid stderr trashing when invoked as non-root + * iptables: Parse options from --help output + * iptables: Use invoked command instead of hardcoded "iptables" + * java: Complete *.war + * kldunload: Increase robustness of compgen filters (#185) + * kldunload: Show modules with digits + * ktutil: Don't leak i and command environment variables + * lftp: Support ~/.local/... bookmark location (#144) + * lowriter,localc etc: Use corresponding oo* completions + * lspci: New completion + * lsscsi: New completion + * lsusb: New completion + * make-changelog.py: Use python3 + * make: Pass script to sed as parameter instead of using process substitution + * man: Don't use $MANPATH directly (#161) + * mkdir: Complete files without appending space + * mkdir: Complete on files in addition to dirs + * mplayer: Disable user config when parsing options + * nproc: New completion + * oggdec: New completion + * openssl: Add completion for the genpkey, pkey, pkeyparam, and pkeyutl commands + * perltidy: New completion + * ping*,ssh,scp,sftp,tracepath6: Filter IPv4/IPv6 literal addresses + * pv: New completion + * pycodestyle: New completion + * pylint: Install for pylint-2 and pylint-3 too + * pylint: Invoke python3 to search for modules if command contains 3 + * python: Support completing dotted module hierarchies + * radvdump: New completion + * reportbug: Add -A/--attach arg completion + * reportbug: Don't hardcode option lists, split option args at = + * rfkill: Rename to _rfkill to avoid conflict with util-linux >= 2.31 + * ri: Fix integrated ri 1.8 class completion + * ssh,ssh-add,ssh-keygen: Complete pkcs11 options with *.so + * ssh-keygen: Add -E arg completion + * ssh: Add -J/ProxyJump completion + * ssh: Declare $prefix closer to use + * test suite: Add basic hid2hci and munin-node-configure test cases + * test suite: Add bunch of man and MANPATH test cases + * test suite: Add bunch of missing basic test cases + * test suite: Add info and pinfo option test cases + * test suite: Drop no longer needed fedoradev /usr/bin/which workaround + * test suite: Enable wine in ubuntu14 + * test suite: Install aptitude in ubuntu14 container + * test suite: Limit amount of info and pinfo test output + * test suite: Limit amount of output from process name completion + * test suite: Limit number of screen -T completion matches + * test suite: Make man test subject names less generic + * test suite: Skip fedoradev GPG checks at least for now + * test suite: Some more mplayer and mencoder coverage + * test suite: Support overriding default match buffer size (#141) + * test suite: man cleanup + * test/docker: Tweak work dir, add bash as default cmd + * test/unit: Whitespace tweaks + * test: Add "postconf -" test case + * test: Add assert_complete_homedir, use in dpkg and ls + * test: Add files to test older ri with + * test: Add some _expand unit tests + * test: Add some comments regarding bash init in library.exp + * test: Fix getting username in non-login shells + * test: Ignore duplicates in find_unique_completion_pair list + * test: Remove things moved to library.exp from bashrc + * test: Try to skip postconf variable test on broken postfix configs altogether + * test: Use prebuilt docker hub bash-completion images + * test: Work around broken centos/fedora postfix config in non-IPv6 setup + * test: dpkg,ls,_tilde: Skip gracefully if no uniq user for completion is found + * test: run bash with --norc to avoid system bashrc + * tox: Avoid stderr spewage when -e invoked without tox.ini + * tox: Complete comma separated -e arguments + * tox: Include ALL in -e completions + * tox: New completion (#163) + * tox: Remove spurious executable bits + * unzip, zipinfo: Associate *.gar (#165) + * uscan: Don't leak cword and words environment variables + * vpnc: Add some option argument (non)completions + * vpnc: Improve config completions + * xdg-mime,xdg-settings: Fix inclusion in tarball + * xdg-mime: New completion + * xdg-settings: New completion + * xine etc, ogg123, mplayer -audiofile: Associate with *.oga + * xm: Don't leak args and commands environment variables + +------------------------------------------------------------------- +Tue Apr 24 09:21:58 UTC 2018 - werner@suse.de + +- Add patch bash-completion-2.7-unRAR-remove.patch that is due legal + issue the unRAR part of 7z had been removed (boo#1077978, boo#1090515) + +------------------------------------------------------------------- +Tue Apr 3 15:30:09 CEST 2018 - kukuk@suse.de + +- Use %license instead of %doc [bsc#1082318] + +------------------------------------------------------------------- +Mon Dec 18 15:29:04 CET 2017 - sbrabec@suse.com + +- Remove rfkill conflicting with util-linux-2.31. + +------------------------------------------------------------------- +Tue Jul 4 07:51:31 UTC 2017 - werner@suse.de + +- Update to version 2.7 + * Makefile: update default compatdir (#132) + * Make user completion file configurable, disable in tests + * test suite: Generalize xspec completion install check + * pyflakes: Remove redundant xspec completion + * test suite: Fix __expand_tilde_by_ref test expectation output + * pdfunite: New *.pdf completion + + bash-completion (2.6) + * Add missing sidedoor to .gitignore (#114) + * test suite: Mark expected centos6 CI _filedir failures as such + * Expose version in BASH_COMPLETION_VERSINFO, use it in profile.d + script + * test suite: Skip an expected make test case failure in centos6 CI + * test suite: Fix ifdown and ifup CI test skipping + * test suite: Ignore env var pulled in by use of scp in tests + * test suite: If colon trim doesn't do anything, trim as usual + * tar: Comment spelling fixes + * test suite: Mark dpkg -L test case untested if no packages + installed + * test suite: Cosmetic tweaks + * dpkg: Fix dpkg -i home dir completion + * test suite: Improve ls home dir test descriptions + * python: Split module completion to separate helper + * micropython: New completion, aliased from python + * test suite: Add Python module completion test case + * python: Fix traceback avoidance on module completion error + * openssl: Parse available digests from dgst -h + * openssl: Add sha2 commands + * gm: New completion, commands only for now + * (test suite): Test screen -T completions + * (test suite): Set TERM to dumb, not dummy + * Revert "(test suite): Fix alias and cd cursor position tests" + * mplayer: Remove duplicate *.m4a and *.m4v associations + * mplayer, xine, etc: Associate *.mp4a and *.mp4v + * xine etc: Fix *.m4a association + * bind: Add option and argument (non-)completions + * _user_at_host: Set nospace only when completing username part + * _user_at_host: Append @ suffix to username part completions + * man: Don't check OSTYPE or GNU userland, just enable on all + systems + * (test suite): Set dcop result to untested if dcop server is not + running + * (test suite): Don't insist on loading all completions dynamically + * _configured_interfaces: Parse from /etc/network/interfaces.d/* on + Debian + * py.test: New completion + * oowriter: Associate with *.pdf + * Don't define BASH_COMPLETION_COMPAT_DIR + * ri: Add option and arg completions + * (test suite): Add our own dummy ri test fixture + * (test suite): Info test needs docs, don't exclude from CentOS + * (test suite): Fix CentOS 6 tcllib setup + * (test suite): Simplify renice test, fix with only one completion + * (test suite): Don't assume configured interfaces in CI setups + * Don't offer * as configured interface when there are none + * (test suite): Add basic CentOS 6 container for bash 4.1 coverage + * (test suite): Ignore runtime loaded env function changes + * (test suite): Add mailman bin dir to PATH for arch test + * arch: Parse options from --help + * (test suite): Load tested completions dynamically + * (test suite): Accept non-whitespace single word in + assert_complete_any + * (test suite): Avoid interference from user and system dirs (#87) + * (test suite): Install some things N/A in ubuntu14 to fedoradev + * (test suite): Add unrar to ubuntu14 container + * (test suite): Fix alias and cd cursor position tests + * (test suite): Add basic alpine test case + * alpine: Parse opts from -h output, add some opt arg completions + * (test suite): Install jshint globally in ubuntu14 + * (test suite): Add mailman bin dir to PATH for some mailman tools + * (test suite): Install jshint to ubuntu14 container with npm + * unshunt: Parse options from --help + * (test suite): Test lsof on ubuntu14 + * (test suite): Add basic hping3 test case + * (test suite): Add our ./configure to PATH to test it, test opts + * (test suite): Add bunch of packages to ubuntu14 container + * (test suite): Ensure /usr/(local/)games is in $PATH + * (test suite): Fix perl -d* test cases with no Devel::* installed + * (test suite): curl has lots of options, add more test prefix + * (test suite): Fix tar test case for ones having --owner-map + * (test suite): Unsupport various kill, renice cases if ps is N/A + * (test suite): Make chkconfig test behave better in container + * (test suite): Don't assume mounted filesystems in quota* tests + * newlist: Parse options from --help, add some arg non-completions + * (test suite): Delete trailing whitespace + * (test suite): Don't assume lists set up in newlist test cases + * (docker): Pull in missing fedoradev xvfb-run which dependency + * mr: Avoid stderr trash and test suite failure if man is N/A + * (test suite): Fix mmsitepass completion test + * tshark -G: Avoid stderr noise when running as superuser + * (docker): Run completion tests with xvfb-run, e.g. for gkrellm + * ssh-keygen: Make option parsing work with OpenSSH < 7 + * synclient, udevadm: Avoid use of posix char classes for awk + * test suite: Add WIP Fedora dev config + * Travis: Switch tests to docker, update to Ubuntu 14 + * xv: Associate with *.j2c, *.j2k, *.jp2, *.jpf, and *.jpg2 (Debian: + #859774) + * eog: Associate with *.j2c and *.jpg2 + * Bump copyright years + * xine etc: Associate uppercase *.WM[AV] + * mplayer: Associate *.weba (#112) + * xine etc: Associate *.webm and *.weba (#112) +- Modify patches + * FOO-dir-completion-boo905348.patch + * PS1-completion-boo903362.patch + * backtick-completion-boo940835.patch + * backticks-bsc963140.patch + * bash-completion-2.4.patch + * bash-completion.changes + * bash-completion.spec + * ls-completion-boo889319.patch + * respect-variables-boo940837.patch + * rm-completion-smart-boo958462.patch + * sh-script-completion-boo977336.patch + +------------------------------------------------------------------- +Tue May 30 15:59:01 UTC 2017 - nico.kruber@gmail.com + +- Update to version 2.5 + * Support for python gui source files (#91) + * mr: New completion + * ssh-keygen: support ed25519 keys (#79) + * Add sidedoor to _ssh() completion (#106) + * .ipa is just a zip file and we should let unzip handle it (#71) + * ant: parse targets in imported buildfiles (#84) + * Add more tests for ccache + * ccache: fix completing compiler's flags + * test suite: Add java/javac non-completion fixture + * javac: Complete -cp like -classpath + * travis: Skip bluez and nis for now due to post-install script + issues + * test/config/*: Delete trailing whitespace + * (test suite): Avoid loading user's ~/.bash_completion, fixes #87 + * ip: Recognize a as alias for address and l for link + * ip: Recognize address in addition to addr + * mr: Disable "clean" test case, command N/A before mr 1.20141023 + * ssh-keygen: Parse switches with _parse_usage, not _parse_help + * mplayer: Associate with *.mjpg, *.mjpeg (Debian: #837779) + * dd: Sync completions with coreutils 8.24 + * travis: Add mr + * perl: Remove full path to cat in PERLDOC_PAGER call + * deja-dup: New completion + * CONTRIBUTING: Reorder sections + * *: Move indentation settings to .editorconfig + * make: Declare _make_target_extract_script like other functions + * Travis: zopfli is AWOL? + * *: Whitespace fixes + * Minor edits to README.md (mostly formatting) (#110) + * Fix bug in 'make' completion when using BSD sed (#108) + * Add support for Include in ssh config (#70) (#80) +- adapt LVM-completion-bsc946875.patch + +------------------------------------------------------------------- +Thu Dec 15 09:37:52 UTC 2016 - werner@suse.de + +- Detect if the completions for mount/umount have to be removed + for modern util-linux package but without using suse_version + +------------------------------------------------------------------- +Thu Dec 15 07:49:36 UTC 2016 - werner@suse.de + +- Fix cut&paste error in final ls completion + +------------------------------------------------------------------- +Wed Dec 14 12:41:38 UTC 2016 - werner@suse.de + +- Add patch tar-completion.patch to allow mixed options with long + and short options (boo#1012212) + +------------------------------------------------------------------- +Wed Dec 14 10:46:27 UTC 2016 - werner@suse.de + +- Change upstream home to https://github.com/scop/bash-completion +- Update to version 2.4 + * xetex, xelatex, luatex, lualatex: Associate with tex files + * Support pod document files for perldoc (#39) + * tipc: add tipc completions + * rpm: Offer --filetriggers with -q + * javadoc: Add bunch of option arg (non)completions + * lrzip: Add -m arg noncompletion + * pypy*: Add basic --jit arg completion + * pypy3: Alias to python + * hcitool,svcadm,tar: Spelling fixes + * tipc: Invoke ls with "command" + * tipc: Indentation fix + * abook: Parse long options from command including full path + * pyvenv: New completion + * chroot: New (generic long options) completion, see #38 + * aptitude: List packages using _apt_cache_packages, fixes #33 + * vncviewer: Cleanup shopt use, drop an eval + * make: Avoid a grep + * rpm: Fix --whatenhances arg completion + * aspell, minicom, mysql: Replace use of ls with printf + * The BitKeeper completion used the wrong set of commands + * Completion for python zip archives + * lvm: pvcreate should be able to use all block devcices + * lvm: fix all commands that should get all PVs + * tar: Detect GNU/other from --version only once per session + * tar: Remove unused variable + * tar: Fix GNU tar help output parsing regex, fixes #15 + * tar: Don't write to /tmp/jetel + * python: Simplify code + * python: Complete all files also after -m + * python: Don't offer options after -c + * python: Complete all files only if -c is before current word + * unzip, zipinfo: Complete on *.pyz + * _lvm: using a single-pattern case and invoking function according + to words[1] + * lvm: _lvm_count_args parameter must be quoted in order to failglob + not to complain + * gendiff: Quoting suffix pattern to avoid triggering failglob + * ssh-add, ssh-keygen: -? needs to be quoted under failglob (Alioth: + #314709) + * Refactor bts and uscan, since they use common functions + * uscan: New completion, thanks to Federico Ceratto + * bts: New completion, thanks to Federico Ceratto. + * nmcli completion was integrated upstream + * ssh-add, ssh-keygen: -? needs to be quoted under failglob (take 2) + (Alioth: #314709) + * umount: Fix mount points escaping/unescaping with Bash-4.3 + * slapt-src: Handle --config=FILE option properly + * sbopkg, slapt-{get,src}: expand tilde in config file name + * slapt-{get,src}: Fix issue with sed not being able to handle some + characters + * slapt-src: split options from their arguments + * psql: Tell psql to not load .psqlrc as it may change output format + (Alioth: #314636) + * mplayer: -dvd-devices takes dvd devices, dirs and .iso files as + argument + * 7z: Improve completion + * f77, f95: Use the same completion as for g77, g95 if they are + links to gfortran + * make: Use only posix basic regexps with sed (Alioth: #314345) + * perl: -d/-dt option argument is optional (Alioth: #314242) + * Add config for cmake to bash-completion. + * kcov: Add new sort types, complete --replace-src-path arguments + * feh: Add new sort type + * man: Use -w instead of --path + * chronyc: Update help text parsing + * chronyc: Add missing subcommands + * chronyc: Add -6 option + * minicom: Recognize user ~/.minirc.* as config files + * rpmbuild: Complete *.spec on --clean (RedHat: #1132959) + * tar: rework the completion completely + * portsnap: New completion. + * modprobe: fix params with multi-line descriptions + * gdb: support --args style completion (Alioth: #314664) + * make: Fix basic regex for portability (Alioth: #314345) + * gnokii: New completion + * xmllint, xmlwf, xsltproc: Complete on Mallard *.page files + * pypy: New completion identical to python (Alioth: #314501) + * make: Don't pick up variables when makefile is reloaded + * make: Offer hidden targets when it is clear that the user is + trying to complete one of them + * make: Fix detection of intermediate targets where make has changed + its database whitespace + * make: completion shouldn't be confused by the output of $(info + confuse: make) + * zopflipng: New completion + * ssh: Extract duplicate code to _ssh_configfile + * gnokii, minicom: Use grep through "command" + * Update URLs and various instructions to GitHub + * ssh: Avoid completing commands before hostname + * chronyc: Parse command args from help output + * chronyc: Wrap long lines + * Load completions also from $XDG_DATA_DIRS (RedHat: #1264094) + * (testsuite) Ignore files generated by complete-ant-cmd.pl + * scp, sftp: Complete -S on commands + * scp, sftp: Fix querying ssh options + * sftp: Add -l arg non-completion + * ssh-copy-id: Offer only *.pub to -i + * mpv: Remove mplayer-aliased completion + * modplug*: Associate *.oct and *.okt + * rpm: Add --whatenhances/recommends/suggests/supplements and + --recommends/supplements completions + * pgrep, pidof, pkill, pwdx, vmstat: Add support for procps-ng + * pdftotext: New completion + * checksec: New completion + * ssh: Complete HostbasedKeyTypes,HostKeyAlgorithms,KexAlgorithms + values + * ssh: Query ciphers and macs from ssh before hardcoded fallback + * ssh: Add -Q argument completion + * sysctl: Return early on --help, --version + * sysctl: Try parsing options from help before usage + * eog: Complete on *.ppm (RedHat: #1090481) + * tar: Plug $line var leak + * tar: Style tweaks + * bsdtar, tar: Remove symlinks from git, have make create them + * jshint: New completion + * gnokii: Include and install it + * gnokii: Fix completions of options that are prefixes for others + * gnokii: Drop dead code + * (testsuite): Add basic gnokii test case + * gnokii: Various minor and cosmetic fixes + * Load user completions from $BASH_COMPLETION_USER_DIR/completions + * synclient: New completion + * tune2fs: Add missing return in -M arg completion + * reptyr: Rename file to _reptyr to avoid conflict with upstreamed + completion + * dropuser: New completion + * createuser: New completion + * createdb, dropdb: Drop -o default, it does not appear to do + anything good here + * tshark: Simplify cut usage + * mcrypt: Simplify -m arg completion + * strings: Fix -T/--target arg completion with non-English locale + * chrome, firefox etc: Complete on *.pdf + * ccache: Add -o/--set-config arg name completion + * gphoto2: Replace tail with awk + * gphoto2: Fix split argument handing, and colon treatment in --port + args + * Actually install the lz4 completion + * _pnames: Add -s for producing (possibly) truncated names (RedHat: + #744406) + * (testsuite) Add cd in dir without subdirs or CDPATH test case + * Protect various compgen invocations from -* leakage (Debian: + #766163) + * pigz, unpigz: Handle *.zz + * rpmbuild: Complete *.spec on --nobuild + * mplayer, *xine: Complete on *.mts (Debian: #759219) + * ant: Support buildfile set in $ANT_ARGS (Alioth: #314735) + * ant: Don't offer more completions after options that exit + * 7z, adb: Trivial cleanups + * python(3): Add -X argument non-completion + * xsltproc. TODO fix for previous commit + * xmllint, xmlwf, xsltproc: Complete on *.dbk and *.docbook (Alioth: + #314770) + * xz: Complete -T/--threads argument + * adb: New completion + * modprobe: Try parsing help before using hardcoding option list + * mpv: New completion alias + adjustments for mplayer (Debian: + #749115) + * hostname: New completion + * nslookup: complete on hosts (Alioth: #314673) + * eog: Complete on *.pgm (RedHat: #1090481) + * pngfix: New completion + * qemu: Fix -balloon arg completion + * qemu: Apply completion to qemu-kvm/-system-i386/-system-x86_64 too + * xrandr: Use the invoked command internally, not hardcoded "xrandr" + * xrandr: Add (some) --setprovider* arg completion support + * ri: Fix class completion with ri >= 3. + * ri: Fix colon handling in class completion. + * flake8: New completion + * pyflakes: New completion + * cal,chfn,chsh,dmesg,eject,hexdump,look,newgrp,renice,runuser,su,wr + ite: Deprecate on Linux in favor of util-linux ones (Debian: + #737672) + * hwclock,ionice,rtcwake: Deprecate in favor of util-linux ones + (Debian: #737672) + * ssh-keygen: New completion + * jpegoptim: New completion + * ip: Add some addr, addrlabel, and route arg completions + * aptitude, dpkg: Replace some grep+cuts with awk + * gcc, lintian, make, pkgadd, slackpkg: grep -> "command grep" + (Debian: #734095) + * lintian: Replace some grep+cuts with awk + * lz4: New completion. + * optipng: New completion. + * cppcheck: Include - in --file-list completions. + * wtf: Look for acronym db from /usr/share/games/bsdgames/acronyms + too. + * wtf: Don't offer -f if it was already specified. + * wtf: Hush stderr when db file doesn't exist. + * appdata-validate: New completion. + * timeout: New completion. + * abook, kldunload: Pre-expand \t instead of relying on sed + supporting it. + * dict: Trivial regex cleanup. + * zopfli: New completion. + * bzip2, gzip, lzma: Cleanups. + * 2to3: New completion. + * file-roller: Reuse unzip's xspec. + * 7z: New completion. + * hcitool, rfcomm, ciptool, hciconfig: Don't leak $args. + * perl: Fix -dt: completion. + * perl*: Fix handling of relative paths in @INC. + * wget: Add --accept-regex/--reject-regex/--regex-type arg + (non)completions. + * wget: Drop incorrect -nv arg completion. + * wget: Stop completing after --help/--version. + * Clean up/compact various globs. + * cvs: Fix checkout -j non-completion. + * sh: Complete script arguments with all filenames (Alioth: + #314226). + * nmcli: Deprecate our completion, upstream has one in 0.9.8.0. + * cvs rm: Don't filter existing files with -f (RedHat: #949479). +- Drop patches now upstream + init-completion-boo922758.patch + pushd-completion-bnc818365.patch +- Rename patches + bash-completion-2.1.patch becomes bash-completion-2.4.patch +- Port the patches to newer version 2.4 + FOO-dir-completion-boo905348.patch + LVM-completion-bsc946875.patch + PS1-completion-boo903362.patch + backtick-completion-boo940835.patch + backticks-bsc963140.patch + ls-completion-boo889319.patch + respect-variables-boo940837.patch + rm-completion-smart-boo958462.patch + sh-script-completion-boo977336.patch +- Only remove completion for umount/mount for older SUSE versions (boo#995045) + +------------------------------------------------------------------- +Wed Aug 24 06:58:32 UTC 2016 - tchvatal@suse.com + +- Mark the documentation as noarch + +------------------------------------------------------------------- +Wed May 18 18:40:09 CEST 2016 - sbrabec@suse.com + +- Split doc build into a separate spec file. It makes possible to + build package in two stages and prevent build loop. + +------------------------------------------------------------------- +Wed May 18 13:40:01 UTC 2016 - werner@suse.de + +- Split off sub packages devel and doc to avoid dependency cycles + +------------------------------------------------------------------- +Wed Apr 27 20:34:12 CEST 2016 - sbrabec@suse.com + +- Remove completions conflicting with util-linux (boo#977259#c3). + +------------------------------------------------------------------- +Wed Apr 27 12:42:50 UTC 2016 - werner@suse.de + +- Add patch sh-script-completion-boo977336.patch to make _filedir + work with COMP_FILEDIR_FALLBACK even if local directries exists + this is for bug boo##977336 + +------------------------------------------------------------------- +Wed Apr 27 11:54:07 UTC 2016 - werner@suse.de + +- Add documentation for this packages below to get the reference + of the e.g. the variable COMP_FILEDIR_FALLBACK (boo#977336) + +------------------------------------------------------------------- +Wed Jan 27 15:42:34 UTC 2016 - werner@suse.de + +- Add patch backticks-bsc963140.patch to handle sub commands + which will be expanded by backticks (bsc#963140) + +------------------------------------------------------------------- +Fri Dec 18 09:33:05 UTC 2015 - werner@suse.de + +- Add patch respect-variables-boo940837.patch to avoid completions + which results in e.g. ls \$HO +- Add patch rm-completion-smart-boo958462.patch to allow completions + list e.g. rm prefix*.jpg +- Modify patch LVM-completion-bsc946875.patch that is add the + new patch from Liuhua Wang + +------------------------------------------------------------------- +Wed Sep 23 11:58:33 UTC 2015 - werner@suse.de + +- Add patch LVM-completion-bsc946875.patch to make LVM comands + work even without any scan happen (bsc#946875) + +------------------------------------------------------------------- +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 + +- Correct typo in patch ls-completion-boo889319.patch + +------------------------------------------------------------------- +Mon Jun 15 08:28:30 UTC 2015 - werner@suse.de + +- Add patch ls-completion-boo889319.patch to make ls completion + more smart (boo#889319) + +------------------------------------------------------------------- +Wed Mar 18 12:45:23 UTC 2015 - werner@suse.de + +- Port my dollar completion from /etc/profile.d/completion.bash to + bash_completion which modifies FOO-dir-completion-boo905348.patch +- Avoid negative cword position counter (boo#922758), this adds + the patch init-completion-boo922758.patch + +------------------------------------------------------------------- +Mon Nov 17 12:46:11 UTC 2014 - werner@suse.de + +- Add patch PS1-completion-boo903362.patch to avoid trouble if + restricted characters of the shell are used in PS1 like + exclamation mark (boo#903362). +- Add patch FOO-dir-completion-boo905348.patch to expand variables + which value is actual a directory to avoid excaped dollar sign + (boo#905348). + +------------------------------------------------------------------- +Mon May 13 07:08:49 UTC 2013 - werner@suse.de + +- Add patch pushd-completion-bnc818365.patch for bnc#818365 -- bash + completion for builtin command "pushd" is missing + +------------------------------------------------------------------- +Tue Apr 23 15:42:50 UTC 2013 - werner@suse.de + +- Do not ship NetworManager completion file as it is part of NM + +------------------------------------------------------------------- +Tue Apr 23 14:17:43 UTC 2013 - werner@suse.de + +- Update to final 2.1 version + + See CHANGES for the full list of changes +- Add patch bash-completion-2.1.patch to avoid blanks after during + file completion (bnc#717151) + +------------------------------------------------------------------- +Fri Apr 19 17:11:24 UTC 2013 - fcrozat@suse.com + +- Do no ship udevadm completion file, it is now part of systemd + package. + +------------------------------------------------------------------- +Sat Jul 7 12:20:53 UTC 2012 - reddwarf@opensuse.org + +- Update to final 2.0 version + + See CHANGES for the full list of changes +- Add pkg-config file + +------------------------------------------------------------------- +Mon Jan 9 10:26:25 UTC 2012 - vuntz@opensuse.org + +- Update to version 1.99: + + New completions: ccache, desktop-file-validate, htop, iperf, + koji, lzip, nethogs, plague-client, udevadm. + + Fixes for completions: cc, cppcheck, curl, c++, dequote, dict, + dmesg, dpkg, lrzip, make, mount, mutt, pidof, removepkg, rpm, + umount, upgradepkg, vi, wine, xv. + + See details in CHANGES. + +------------------------------------------------------------------- +Wed Nov 30 15:09:57 CET 2011 - tiwai@suse.de + +- Update to version 1.90: + - new completions: epdfview, lpr, lpq, mysql, puppet, pkgtool, + makepkg, rmp2tgz, slapt-get, slapt-src, slackpkg, kcov, feh, + xgamma, fbi, fbgs sbopkg, a2x, arping, asciidoc, base64, cal, + chrpath, cppcheck, curl, dmesg, dot, file, gnome-mplayer, gprof, + hddtemp, host, htpasswd, idn, ionice, jps, lbunzip2, lbzip2, + lbzcat, prelink, protoc, pwdx, pwgen, reptyr, sum, watch, + phing, pinfo + - installed location changed to /usr/share/bash-completion/* + - see more changes in CHANGES file + +------------------------------------------------------------------- +Sat Sep 17 19:13:18 UTC 2011 - jengelh@medozas.de + +- Remove redundant tags/sections from specfile +- Use %_smp_mflags for parallel build + +------------------------------------------------------------------- +Fri Feb 25 08:30:09 UTC 2011 - poletti.marco@gmail.com + +- Update to version 1.3: + + Added completions for: badblocks, compgen, crontab, dumpe2fs, + e2freefrag, e2label, ether-wake, filefrag, gendiff, growisofs, + hping{,3} (the previous version already completed hping2), + iftop, ip, iscsiadm, javaws, kid3, lrzip, lsof, mktemp, + perldoc, portecle, POSIX sh, postgresql, + sha{,224,256,384,512}sum, sysbench, tune2fs, xfreerdp, xmodmap, + xm subcommands and xrdb. + + Improve the completions for: autotools, /etc/init.d/*, ipmitool, + jar, java, javadoc, MAC address, man, mencoder, mkdir, mplayer, + okular, pack200, povray, python, rpm, rpmbuild, sqlite3, tar, + unzip, users/groups (in various contexts), wodim, xine-based + players and xmllint. + + Fix the completions for: avahi-browse, IPv6 known hosts, + kompare, muttrc, p4, povray and ~username (in various + contexts). + + Other changes + +------------------------------------------------------------------- +Thu Jan 13 10:13:48 CET 2011 - vuntz@opensuse.org + +- Add bash-completion-fix-service.patch to fix an error created by + the "service" completion. + +------------------------------------------------------------------- +Fri Jan 7 14:06:29 UTC 2011 - poletti.marco@gmail.com + +- Update to version 1.2. + * Add new completions. + * Many improvements and fixes to existing completions. + * Completely drop support for bash < 3. + +------------------------------------------------------------------- +Tue Oct 20 14:23:47 CEST 2009 - poletti.marco@gmail.com + +- Update to version 1.1, that supports bash 4.0 better + * Split many completions in files under contrib/ + * Added new completions + * Improved existing completions + +------------------------------------------------------------------- +Mon Oct 5 11:32:39 CEST 2009 - vuntz@opensuse.org + +- Update to version 1.0 (too many changes to list). +- Remove all our patches except bash-completion-speedup_rpm.patch: + + bash-completion-bzip2_fix.patch: should be fixed upstream. + + bash-completion-cd.patch: doesn't seem to be needed. + + bash-completion-complete_spm.patch: source rpms are now src.rpm + as far as I can tell, so no need to complete on spm. + + bash-completion-mount_dir_fix.patch: the fix is not correct. It + should not be for root only. bnc#386459 should be forwarded + upstream for a proper fix. + + bash-completion-no_tilde_expansion.patch: I'm unsure we want + to diverge there. bnc#386844 should be forwarded upstream for a + proper fix. + + bash-completion-readonly_fix.patch: this is now fixed upstream, + I think. + + bash-completion-svn_filenames.patch: fixed upstream. + + bash_completion-rpm_install_complete.patch: I'm really not sure + the fix is right. bnc#242123 should be forwarded upstream. +- Respin bash-completion-speedup_rpm.patch. +- Remove the git completion: it's now in git itself. + +------------------------------------------------------------------- +Tue Nov 11 16:25:46 CET 2008 - werner@suse.de + +- Make completion for cd command smart (bnc#442827) + +------------------------------------------------------------------- +Fri Sep 26 16:29:52 CEST 2008 - mkoenig@suse.de + +- fix problem with readonly vars [bnc#383486] +- speed up rpm completion [bnc#402659] +- complete on .spm [bnc#416901] + +------------------------------------------------------------------- +Tue May 6 15:37:54 CEST 2008 - mkoenig@suse.de + +- remove default tilde expansion, as this should be configurable + by the expand-tilde readline setting, even with bash-completion + installed [bnc#386844] + +------------------------------------------------------------------- +Mon May 5 16:12:47 CEST 2008 - mkoenig@suse.de + +- fix mount completion for root [bnc#386459] + +------------------------------------------------------------------- +Tue Apr 22 16:30:44 CEST 2008 - mkoenig@suse.de + +- use -o filenames for svn completion [bnc#382280] +- add empty %build section + +------------------------------------------------------------------- +Fri Jun 1 16:38:39 CEST 2007 - mkoenig@suse.de + +- fix bzip2 completion to handle filenames with spaces [#278608] + +------------------------------------------------------------------- +Thu Mar 8 12:51:15 CET 2007 - mkoenig@suse.de + +- enhance rpm completion [#242123] + +------------------------------------------------------------------- +Thu Feb 15 11:43:10 CET 2007 - mkoenig@suse.de + +- add git-completion +- add %clean target to specfile +- only install really useful completions by default + +------------------------------------------------------------------- +Wed Feb 7 13:23:19 CET 2007 - mkoenig@suse.de + +- update to version 20060301 + * There were probable bash 3.1 POSIX quote problems if + UserKnownHostsFile or GlobalKnownHostsFile keywords were used + inside ssh config files. Fixed. + * Added new subversion completion implementation + * Added minicom completion + * --nodigest and --nosignature options must be set in $nodig and + $nosig within _rpm_installed_packages() itself, not just set + in _rpm() before _rpm_installed_packages() is called. This is + because other completion functions also call + _rpm_installed_packages(). + * Minor playmidi and timidity additions for .MID(I) + (capital letters) files. + * Add kdvi, dvipdf and advi to programs that complete on .dvi + files + * iconv completion improvement + * Replace invoke-rc.d completion +- move useful completion files to /etc/bash_completion.d/ + +------------------------------------------------------------------- +Wed Jan 25 21:45:51 CET 2006 - mls@suse.de + +- converted neededforbuild to BuildRequires + +------------------------------------------------------------------- +Tue Aug 2 13:35:20 CEST 2005 - cthiel@suse.de + +- Update to version 20050721. + +------------------------------------------------------------------- +Mon Mar 7 11:46:48 CET 2005 - agruen@suse.de + +- Update to version 20050121. + +------------------------------------------------------------------- +Tue Sep 21 20:01:03 CEST 2004 - agruen@suse.de + +- Update to version 20040711. Drop obsolete patches. + +------------------------------------------------------------------- +Mon Feb 23 16:27:44 CET 2004 - hmacht@suse.de + +- added option # norootforbuild in specfile + +------------------------------------------------------------------- +Thu Sep 18 15:48:32 CEST 2003 - agruen@suse.de + +- #30648: fix insmod tab completion regexp quoting bug. + +------------------------------------------------------------------- +Wed Sep 3 14:53:08 CEST 2003 - agruen@suse.de + +- rschiele@uni-mannheim.de: bash_completion searches lsmod in + /sbin, but it is in /bin now. + +------------------------------------------------------------------- +Mon Jul 28 18:26:44 CEST 2003 - agruen@suse.de + +- Remove /etc/bash_completion.d/ directory from files list: This + directory is now "owned" by bash. (We still must create an + /etc directory in the build root, though.) + +------------------------------------------------------------------- +Fri Jul 25 15:38:35 CEST 2003 - agruen@suse.de + +- Mark /usr/share/doc/packages/bash-completion/ as owned by that + package (RPMv4 complained about that). + +------------------------------------------------------------------- +Thu Jul 24 15:40:01 CEST 2003 - agruen@suse.de + +- Create initial package. diff --git a/bash-completion.spec b/bash-completion.spec new file mode 100644 index 0000000..6fcdb34 --- /dev/null +++ b/bash-completion.spec @@ -0,0 +1,175 @@ +# +# spec file for package bash +# +# Copyright (c) 2022 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%global flavor @BUILD_FLAVOR@%{nil} + +%if "%{flavor}" == "doc" +%define build_core 0 +%define build_doc 1 +%define nsuffix -doc +%else +%define build_core 1 +%define build_doc 0 +%endif + +%global _name bash-completion +Name: %{_name}%{?nsuffix} +Version: 2.11 +Release: 0 +%if %{build_core} +Summary: Programmable Completion for Bash +License: GPL-2.0-or-later +%else +Summary: The Documentation of Programmable Completion for Bash +License: GPL-2.0-or-later +Provides: bash-completion:%{_defaultdocdir}/%{_name}/AUTHORS +%endif +URL: https://github.com/scop/bash-completion/ +Source0: https://github.com/scop/bash-completion/releases/download/%{version}/%{_name}-%{version}.tar.xz +Source1: bash-completion-rpmlintrc +# PATCH-FIX-UPSTREAM bnc#717151 -- Terminal tab autocompletion error +Patch0: %{_name}-2.4.patch +# PATCH-FIX-SUSE bnc#1012212 -- bash tab-autocompletion hangs on TAR-archiving with --create key +Patch1: tar-completion.patch +# PATCH-FIX-SUSE boo#905348 -- tab completion with shell variable changes command line with backslash +Patch3: FOO-dir-completion-boo905348.patch +# PATCH-FIX-SUSE +Patch4: qdbus-qt5.patch +# PATCH-FIX-SUSE boo#889319 +Patch5: ls-completion-boo889319.patch +# PATCH-FIX-SUSE boo#940835 +Patch6: backtick-completion-boo940835.patch +# PATCH-FIX-SUSE bsc#946875 +Patch7: LVM-completion-bsc946875.patch +# PATCH-FIX-SUSE boo#940837, bsc#959299 +Patch8: respect-variables-boo940837.patch +# PATCH-FIX-SUSE boo#958462 +Patch9: rm-completion-smart-boo958462.patch +# PATCH-FIX-SUSE boo#963140 +Patch10: backticks-bsc963140.patch +# PATCH-FIX-SUSE boo#1090515 +Patch11: bash-completion-2.7-unRAR-remove.patch +# PATCH-FIX-SUSE boo#1167952 +Patch12: bash-completion-fix-missing-directory-completion-with-filename-pattern.patch +# PATCH-FIX-SUSE boo#1190929 +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 +%if %{build_doc} +BuildRequires: asciidoc +BuildRequires: libxslt-tools +%endif +%if %{build_core} +Requires: bash >= 5.1.16 +%endif + +%description +%if %{build_doc} +This package contains the package documentation file of the +package bash-completion. +%else +bash-completion is a collection of shell functions that take advantage +of the programmable completion feature of Bash 2.04 and later. + +%package devel +Summary: The Configuration of Programmable Completion for Bash +Provides: bash-completion:%{_datadir}/pkgconfig/bash-completion.pc + +%description devel +This package contains the package configuration file of the +package bash-completion. +%endif + +%prep +%autosetup -p1 -n %{_name}-%{version} + +%build +autoreconf -fiv +%configure +%if %{build_core} +%make_build +%endif +%if %{build_doc} +pushd doc + mkdir html + a2x -D html -d book -f xhtml --asciidoc-opts="--unsafe" main.txt +popd +%endif + +%install +%if %{build_core} +%make_install +# shipping in latest systemd now +rm -vf %{buildroot}%{_datadir}/bash-completion/completions/udevadm +rm -vf %{buildroot}%{_datadir}/bash-completion/completions/nmcli +# shipping in latest util-linux now +rm -vf %{buildroot}%{_datadir}/bash-completion/completions/cal +rm -vf %{buildroot}%{_datadir}/bash-completion/completions/chsh +rm -vf %{buildroot}%{_datadir}/bash-completion/completions/dmesg +rm -vf %{buildroot}%{_datadir}/bash-completion/completions/eject +rm -vf %{buildroot}%{_datadir}/bash-completion/completions/hexdump +rm -vf %{buildroot}%{_datadir}/bash-completion/completions/hwclock +rm -vf %{buildroot}%{_datadir}/bash-completion/completions/ionice +rm -vf %{buildroot}%{_datadir}/bash-completion/completions/look +rm -vf %{buildroot}%{_datadir}/bash-completion/completions/mount +rm -vf %{buildroot}%{_datadir}/bash-completion/completions/newgrp +rm -vf %{buildroot}%{_datadir}/bash-completion/completions/renice +rm -vf %{buildroot}%{_datadir}/bash-completion/completions/rtcwake +rm -vf %{buildroot}%{_datadir}/bash-completion/completions/su +rm -vf %{buildroot}%{_datadir}/bash-completion/completions/umount +# shipping in devscripts now +rm -vf %{buildroot}%{_datadir}/bash-completion/completions/bts +# Seems to be broken (boo#1161136) +rm -vf %{buildroot}%{_datadir}/bash-completion/completions/_adb +%endif +%if %{build_doc} +pushd doc + mkdir -p %{buildroot}%{_defaultdocdir}/%{_name}/html + install -m 0644 html/* %{buildroot}%{_defaultdocdir}/%{_name}/html/ +popd +install -m 0644 AUTHORS %{buildroot}%{_defaultdocdir}/%{_name}/ +install -m 0644 README.md %{buildroot}%{_defaultdocdir}/%{_name}/README +%endif + +%files +%if "%{flavor}" == "doc" +%dir %{_defaultdocdir}/%{_name} +%{_defaultdocdir}/%{_name}/AUTHORS +%{_defaultdocdir}/%{_name}/README +%{_defaultdocdir}/%{_name}/html/ +%else +%license COPYING +%{_datadir}/bash-completion +%config %{_sysconfdir}/profile.d/bash_completion.sh + +%files devel +%dir %{_datadir}/cmake +%{_datadir}/cmake/bash-completion +%{_datadir}/pkgconfig/bash-completion.pc +# TRICK: bash-completion-devel does not require bash-completion. +# It would cause failure of directory ownership check. +# Own this directory to prevent it. +%dir %{_datadir}/bash-completion +%endif + +%changelog diff --git a/boo1190929-9af4afd0.patch b/boo1190929-9af4afd0.patch new file mode 100644 index 0000000..8b0ea88 --- /dev/null +++ b/boo1190929-9af4afd0.patch @@ -0,0 +1,89 @@ +From 9af4afd01facc0dc3407c8b81375bedd4b2f5fa4 Mon Sep 17 00:00:00 2001 +From: Michal Suchanek +Date: Thu, 30 Sep 2021 12:25:49 +0200 +Subject: [PATCH] insmod, modinfo, modprobe: support zstd compressed modules + +Signed-off-by: Michal Suchanek +--- + completions/insmod | 2 +- + completions/modinfo | 2 +- + completions/modprobe | 2 +- + 3 files changed, 3 insertions(+), 3 deletions(-) + +--- a/completions/insmod ++++ b/completions/insmod 2021-10-04 13:34:04.749347460 +0000 +@@ -7,7 +7,7 @@ _insmod() + + # do filename completion for first argument + if ((cword == 1)); then +- _filedir '@(?(k)o?(.[gx]z))' ++ _filedir '@(?(k)o?(.[gx]z|.zst))' + else # do module parameter completion + COMPREPLY=($(compgen -W "$(PATH="$PATH:/sbin" modinfo \ + -p ${words[1]} 2>/dev/null | cut -d: -f1)" -- "$cur")) +--- a/completions/modinfo ++++ b/completions/modinfo 2021-10-04 13:34:04.749347460 +0000 +@@ -37,7 +37,7 @@ _modinfo() + + # do filename completion if we're giving a path to a module + if [[ $cur == @(*/|[.~])* ]]; then +- _filedir '@(?(k)o?(.[gx]z))' ++ _filedir '@(?(k)o?(.[gx]z|.zst))' + else + _modules $version + fi +--- a/completions/modprobe ++++ b/completions/modprobe 2021-10-04 13:34:04.749347460 +0000 +@@ -80,7 +80,7 @@ _modprobe() + insert) + # do filename completion if we're giving a path to a module + if [[ $cur == @(*/|[.~])* ]]; then +- _filedir '@(?(k)o?(.[gx]z))' ++ _filedir '@(?(k)o?(.[gx]z|.zst))' + elif [[ -n $module ]]; then + # do module parameter completion + if [[ $cur == *=* ]]; then +================================================================================ +From: Werner Fink +Date: Mon, 04 Oct 2021 15:38:08 +0200 +Subject: Also support .bz2 compressed kernel modules + +--- + completions/insmod | 2 +- + completions/modinfo | 2 +- + completions/modprobe | 2 +- + 3 files changed, 3 insertions(+), 3 deletions(-) + +--- a/completions/insmod ++++ b/completions/insmod 2021-10-04 13:35:49.279524797 +0000 +@@ -7,7 +7,7 @@ _insmod() + + # do filename completion for first argument + if ((cword == 1)); then +- _filedir '@(?(k)o?(.[gx]z|.zst))' ++ _filedir '@(?(k)o?(.[gx]z|.zst|.bz2))' + else # do module parameter completion + COMPREPLY=($(compgen -W "$(PATH="$PATH:/sbin" modinfo \ + -p ${words[1]} 2>/dev/null | cut -d: -f1)" -- "$cur")) +--- a/completions/modinfo ++++ b/completions/modinfo 2021-10-04 13:35:59.863340257 +0000 +@@ -37,7 +37,7 @@ _modinfo() + + # do filename completion if we're giving a path to a module + if [[ $cur == @(*/|[.~])* ]]; then +- _filedir '@(?(k)o?(.[gx]z|.zst))' ++ _filedir '@(?(k)o?(.[gx]z|.zst|.bz2))' + else + _modules $version + fi +--- a/completions/modprobe ++++ b/completions/modprobe 2021-10-04 13:36:14.743080796 +0000 +@@ -80,7 +80,7 @@ _modprobe() + insert) + # do filename completion if we're giving a path to a module + if [[ $cur == @(*/|[.~])* ]]; then +- _filedir '@(?(k)o?(.[gx]z|.zst))' ++ _filedir '@(?(k)o?(.[gx]z|.zst|.bz2))' + elif [[ -n $module ]]; then + # do module parameter completion + if [[ $cur == *=* ]]; then diff --git a/bsc1199724-modules.patch b/bsc1199724-modules.patch new file mode 100644 index 0000000..b82f5a3 --- /dev/null +++ b/bsc1199724-modules.patch @@ -0,0 +1,15 @@ +--- + bash_completion | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/bash_completion ++++ b/bash_completion 2022-05-23 10:50:43.197937832 +0000 +@@ -1316,7 +1316,7 @@ _modules() + local modpath + modpath=/lib/modules/$1 + COMPREPLY=($(compgen -W "$(command ls -RL $modpath 2>/dev/null | +- command sed -ne 's/^\(.*\)\.k\{0,1\}o\(\.[gx]z\)\{0,1\}$/\1/p')" -- "$cur")) ++ command sed -ne 's/^\(.*\)\.k\{0,1\}o\(\.[gx]z\|\.bz2\|\.zst\)\{0,1\}$/\1/p')" -- "$cur")) + } + + # This function completes on installed modules diff --git a/fix-curl-help-completion-bsc1200791.patch b/fix-curl-help-completion-bsc1200791.patch new file mode 100644 index 0000000..d89a8a4 --- /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 diff --git a/ls-completion-boo889319.patch b/ls-completion-boo889319.patch new file mode 100644 index 0000000..92d4c7a --- /dev/null +++ b/ls-completion-boo889319.patch @@ -0,0 +1,22 @@ +--- + bash_completion | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +Index: bash-completion-2.11/bash_completion +=================================================================== +--- bash-completion-2.11.orig/bash_completion ++++ bash-completion-2.11/bash_completion +@@ -2079,11 +2079,12 @@ _longopt() + # makeinfo and texi2dvi are defined elsewhere. + complete -F _longopt -o filenames a2ps awk base64 bash bc bison cat chroot colordiff cp \ + csplit cut date df diff dir du enscript expand fmt fold gperf \ +- grep grub head irb ld ldd less ln ls m4 md5sum mkdir mkfifo mknod \ ++ grep grub head irb ld ldd less ln m4 md5sum mkdir mkfifo mknod \ + mv nl nm objcopy objdump od paste pr ptx readelf rm rmdir \ + sed sha{,1,224,256,384,512}sum shar sort split strip sum tac tail tee \ + texindex touch tr unexpand uniq vdir wc who + complete -F _longopt -o default env netstat seq uname units ++complete -F _longopt -o bashdefault -o default -o filenames -o nospace ls ll la l ls-l lf + + declare -Ag _xspecs + diff --git a/qdbus-qt5.patch b/qdbus-qt5.patch new file mode 100644 index 0000000..b409cd6 --- /dev/null +++ b/qdbus-qt5.patch @@ -0,0 +1,38 @@ +From: Fabian Vogt +Subject: Add completion for qdbus-qt5 + +qdbus is the Qt 4 variant, also complete for the Qt 5 version. + +Index: bash-completion-2.11/completions/qdbus +=================================================================== +--- bash-completion-2.11.orig/completions/qdbus ++++ bash-completion-2.11/completions/qdbus +@@ -9,6 +9,6 @@ _qdbus() + COMPREPLY=($(compgen -W '$(command ${words[@]} 2>/dev/null | \ + command sed "s/(.*)//")' -- "$cur")) + } && +- complete -F _qdbus qdbus dcop ++ complete -F _qdbus qdbus qdbus-qt5 dcop + + # ex: filetype=sh +Index: bash-completion-2.11/completions/Makefile.am +=================================================================== +--- bash-completion-2.11.orig/completions/Makefile.am ++++ bash-completion-2.11/completions/Makefile.am +@@ -680,6 +680,7 @@ CLEANFILES = \ + pyvenv-3.6 \ + pyvenv-3.7 \ + pyvenv-3.8 \ ++ qdbus-qt5 \ + qemu-kvm \ + qemu-system-i386 \ + qemu-system-x86_64 \ +@@ -894,7 +895,7 @@ symlinks: $(DATA) + $(ss) pyvenv \ + pyvenv-3.4 pyvenv-3.5 pyvenv-3.6 pyvenv-3.7 pyvenv-3.8 + $(ss) qdbus \ +- dcop ++ dcop qdbus-qt5 + $(ss) qemu \ + qemu-kvm qemu-system-i386 qemu-system-x86_64 + $(ss) quota \ diff --git a/respect-variables-boo940837.patch b/respect-variables-boo940837.patch new file mode 100644 index 0000000..b3d9714 --- /dev/null +++ b/respect-variables-boo940837.patch @@ -0,0 +1,36 @@ +Bug boo#940837 +Bug bsc#959299 + +That is do not escape the dollar character of a variable to allow +commands like `ls' to go further in its completion chain. + +--- + bash_completion | 15 +++++++++++++-- + 1 file changed, 13 insertions(+), 2 deletions(-) + +Index: bash-completion-2.11/bash_completion +=================================================================== +--- bash-completion-2.11.orig/bash_completion ++++ bash-completion-2.11/bash_completion +@@ -2034,8 +2034,19 @@ _complete_as_root() + + _longopt() + { +- local cur prev words cword split +- _init_completion -s || return ++ local cur=${COMP_WORDS[COMP_CWORD]} ++ local prev words cword split ++ ++ if [[ "${cur:0:1}" == '$' ]] ; then ++ compopt -o dirnames +o filenames ++ else ++ compopt +o dirnames -o filenames ++ fi ++ ++ if ! _init_completion -s ; then ++ _dollar $cur ++ return ++ fi + + case "${prev,,}" in + --help | --usage | --version) diff --git a/rm-completion-smart-boo958462.patch b/rm-completion-smart-boo958462.patch new file mode 100644 index 0000000..46416cc --- /dev/null +++ b/rm-completion-smart-boo958462.patch @@ -0,0 +1,28 @@ +Bug boo#958462 + +Allow the smart bash builtin completion if normal completion scripting +does not return anything. + +--- + bash_completion | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +Index: bash-completion-2.11/bash_completion +=================================================================== +--- bash-completion-2.11.orig/bash_completion ++++ bash-completion-2.11/bash_completion +@@ -2096,11 +2096,13 @@ _longopt() + complete -F _longopt -o filenames a2ps awk base64 bash bc bison cat chroot colordiff cp \ + csplit cut date df diff dir du enscript expand fmt fold gperf \ + grep grub head irb ld ldd less ln m4 md5sum mkdir mkfifo mknod \ +- mv nl nm objcopy objdump od paste pr ptx readelf rm rmdir \ ++ mv nl nm objcopy objdump od paste pr ptx readelf \ + sed sha{,1,224,256,384,512}sum shar sort split strip sum tac tail tee \ + texindex touch tr unexpand uniq vdir wc who + complete -F _longopt -o default env netstat seq uname units + complete -F _longopt -o bashdefault -o default -o filenames -o nospace ls ll la l ls-l lf ++complete -F _longopt -o bashdefault -o default -o filenames -o nospace rm rmdir ++ + + declare -Ag _xspecs + diff --git a/tar-completion.patch b/tar-completion.patch new file mode 100644 index 0000000..e368808 --- /dev/null +++ b/tar-completion.patch @@ -0,0 +1,19 @@ +boo#1012212 -- bash tab-autocompletion hangs on TAR-archiving with --create key + +--- + completions/tar | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +Index: bash-completion-2.11/completions/tar +=================================================================== +--- bash-completion-2.11.orig/completions/tar ++++ bash-completion-2.11/completions/tar +@@ -185,7 +185,7 @@ __tar_preparse_cmdline() + first_arg=1 + for i in "$@"; do + case "$i" in +- --delete | --test-label) ++ --delete|--test-label|--catenate|--concatenate|--extract|--get|--update|--list|--append|--create) + tar_mode=${i:2:100} + tar_mode_arg=$i + break