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
27 lines
1.1 KiB
Diff
27 lines
1.1 KiB
Diff
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(-)
|
|
|
|
--- bash_completion
|
|
+++ bash_completion 2017-07-04 07:48:24.632925756 +0000
|
|
@@ -1941,11 +1941,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 only knows -g in bash >= 4.2.
|
|
if [[ ${BASH_VERSINFO[0]} -gt 4 || ${BASH_VERSINFO[1]} -ge 2 ]]; then
|