04f0acee3f
- 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 OBS-URL: https://build.opensuse.org/request/show/760990 OBS-URL: https://build.opensuse.org/package/show/shells/bash-completion?expand=0&rev=102
15 lines
592 B
Diff
15 lines
592 B
Diff
---
|
|
bash_completion.sh.in | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
--- bash_completion.sh.in
|
|
+++ bash_completion.sh.in 2017-07-04 07:42:39.171304553 +0000
|
|
@@ -1,6 +1,6 @@
|
|
# shellcheck shell=sh disable=SC1091,SC2039,SC2166
|
|
# Check for interactive bash and that we haven't already been sourced.
|
|
-if [ "x${BASH_VERSION-}" != x -a "x${PS1-}" != x -a "x${BASH_COMPLETION_VERSINFO-}" = x ]; then
|
|
+if [[ -n "${BASH_VERSION-}" && $- = *i* && -z "${BASH_COMPLETION_VERSINFO-}" ]]; then
|
|
|
|
# Check for recent enough version of bash.
|
|
if [ "${BASH_VERSINFO[0]}" -gt 4 ] || \
|