# # spec file for package bash-completion # # Copyright (c) 2020 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/ # Name: bash-completion # WARNING: After editing this file please call pre_checkin.sh to update bash-completion-doc.spec. # Do not change %%build_core. %define build_core 1 # Always set %%build_doc to 0 before submit to OBS. %define build_doc 0 Version: 2.10 Release: 7.1 Summary: Programmable Completion for Bash License: GPL-2.0-or-later Group: System/Shells 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 bnc#903362 -- tab completion for file names prints error Patch2: PS1-completion-boo903362.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 boo#889319 Patch5: ls-completion-boo889319.patch # PATCH-FIX-SUSE Patch4: qdbus-qt5.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 Patch12: bash-completion-2.7-unRAR-remove.patch # PATCH-FIX-SUSE boo#1167952 Patch13: bash-completion-fix-missing-directory-completion-with-filename-pattern.patch %if %build_doc BuildRequires: asciidoc BuildRequires: libxslt-tools %endif BuildRequires: libtool BuildRequires: pkgconf-pkg-config %if %build_core BuildRequires: cmake BuildRequires: util-linux Requires: bash %endif BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch %if %build_core %description 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 Group: Development/Libraries/C and C++ Provides: bash-completion:%{_datadir}/pkgconfig/bash-completion.pc %description devel This package contains the package configuration file of the package bash-completion. %endif %if %build_doc %package doc Summary: The Documentation of Programmable Completion for Bash Group: Development/Libraries/C and C++ Provides: bash-completion:%{_defaultdocdir}/%{name}/AUTHORS BuildArch: noarch %description doc This package contains the package documentation file of the package bash-completion. %endif %prep %setup -q %patch0 -b .p0 %patch1 -b .p1 %patch2 -b .p2 %patch3 -b .p3 %patch4 -b .p4 -p1 %patch5 -b .p5 %patch6 -b .p6 %patch7 -b .p7 -p1 %patch8 -b .p8 %patch9 -b .p9 %patch10 -b .p10 -p1 %patch12 -b .p12 -p0 %patch13 -b .p13 -p1 %build autoreconf -fiv %configure %if %build_core make %{?_smp_mflags} %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 if test -e %{_datadir}/bash-completion/completions/mount then rm -vf %{buildroot}%{_datadir}/bash-completion/completions/mount fi 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 if test -e %{_datadir}/bash-completion/completions/umount then rm -vf %{buildroot}%{_datadir}/bash-completion/completions/umount fi # 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 %if %build_core %files %defattr(-,root,root) %license COPYING %if %build_doc %exclude %{_defaultdocdir}/%{name}/AUTHORS %exclude %{_defaultdocdir}/%{name}/README %exclude %{_defaultdocdir}/%{name}/html/ %endif %{_datadir}/bash-completion %{_datadir}/cmake/bash-completion %config %{_sysconfdir}/profile.d/bash_completion.sh %files devel %defattr(-,root,root) %{_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 %if %build_doc %files doc %defattr(-,root,root) %dir %{_defaultdocdir}/%{name} %{_defaultdocdir}/%{name}/AUTHORS %{_defaultdocdir}/%{name}/README %{_defaultdocdir}/%{name}/html/ %endif %changelog * Tue Jun 23 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 2020 Dirk Mueller - fix extra tokens at the end of %%endif directive build errors * Mon Apr 13 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 2020 Michal Suchanek - Fix completion excluding directories (boo#1167952). * bash-completion-fix-missing-directory-completion-with-filename-pattern.patch * Fri Mar 13 2020 Fabian Vogt - Add patch to also complete qdbus-qt5: * qdbus-qt5.patch * Fri Jan 17 2020 Dr. Werner Fink - Remove _adb as it seems to be broken anyway (boo#1161136) * Sun Jan 5 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 2019 Dr. Werner Fink - Add patch gcc-564d068.patch from pull request 564d068 of Martin to upstream of bash-completion * Fri Mar 29 2019 Martin Wilck - Removed bts completions (upcoming devscript package contains a more recent one). * Mon Oct 22 2018 Dr. Werner Fink - Modify patch PS1-completion-boo903362.patch to make it work with mksh as well (boo#1104531) * Thu Aug 2 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 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 2018 kukuk@suse.de - Use %%license instead of %%doc [bsc#1082318] * Mon Dec 18 2017 sbrabec@suse.com - Remove rfkill conflicting with util-linux-2.31. * Tue Jul 4 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 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 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 2016 werner@suse.de - Fix cut&paste error in final ls completion * Wed Dec 14 2016 werner@suse.de - Add patch tar-completion.patch to allow mixed options with long and short options (boo#1012212) * Wed Dec 14 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 2016 tchvatal@suse.com - Mark the documentation as noarch * Wed May 18 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 2016 werner@suse.de - Split off sub packages devel and doc to avoid dependency cycles * Wed Apr 27 2016 sbrabec@suse.com - Remove completions conflicting with util-linux (boo#977259#c3). * Wed Apr 27 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 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 2016 werner@suse.de - Add patch backticks-bsc963140.patch to handle sub commands which will be expanded by backticks (bsc#963140) * Fri Dec 18 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 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 2015 werner@suse.de - Add patch backtick-completion-boo940835.patch to allow correct backtick completion (boo#940835) * Wed Aug 12 2015 werner@suse.de - Correct typo in patch ls-completion-boo889319.patch * Mon Jun 15 2015 werner@suse.de - Add patch ls-completion-boo889319.patch to make ls completion more smart (boo#889319) * Wed Mar 18 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 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 2013 werner@suse.de - Add patch pushd-completion-bnc818365.patch for bnc#818365 -- bash completion for builtin command "pushd" is missing * Tue Apr 23 2013 werner@suse.de - Do not ship NetworManager completion file as it is part of NM * Tue Apr 23 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 2013 fcrozat@suse.com - Do no ship udevadm completion file, it is now part of systemd package. * Sat Jul 7 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 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 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 2011 jengelh@medozas.de - Remove redundant tags/sections from specfile - Use %%_smp_mflags for parallel build * Fri Feb 25 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 2011 vuntz@opensuse.org - Add bash-completion-fix-service.patch to fix an error created by the "service" completion. * Fri Jan 7 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 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 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 2008 werner@suse.de - Make completion for cd command smart (bnc#442827) * Fri Sep 26 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 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 2008 mkoenig@suse.de - fix mount completion for root [bnc#386459] * Tue Apr 22 2008 mkoenig@suse.de - use -o filenames for svn completion [bnc#382280] - add empty %%build section * Fri Jun 1 2007 mkoenig@suse.de - fix bzip2 completion to handle filenames with spaces [#278608] * Thu Mar 8 2007 mkoenig@suse.de - enhance rpm completion [#242123] * Thu Feb 15 2007 mkoenig@suse.de - add git-completion - add %%clean target to specfile - only install really useful completions by default * Wed Feb 7 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 2006 mls@suse.de - converted neededforbuild to BuildRequires * Tue Aug 2 2005 cthiel@suse.de - Update to version 20050721. * Mon Mar 7 2005 agruen@suse.de - Update to version 20050121. * Tue Sep 21 2004 agruen@suse.de - Update to version 20040711. Drop obsolete patches. * Mon Feb 23 2004 hmacht@suse.de - added option # norootforbuild in specfile * Thu Sep 18 2003 agruen@suse.de - #30648: fix insmod tab completion regexp quoting bug. * Wed Sep 3 2003 agruen@suse.de - rschiele@uni-mannheim.de: bash_completion searches lsmod in /sbin, but it is in /bin now. * Mon Jul 28 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 2003 agruen@suse.de - Mark /usr/share/doc/packages/bash-completion/ as owned by that package (RPMv4 complained about that). * Thu Jul 24 2003 agruen@suse.de - Create initial package.