[Bug 821411] New: systemd: bash completion does not work
https://bugzilla.novell.com/show_bug.cgi?id=821411 https://bugzilla.novell.com/show_bug.cgi?id=821411#c0 Summary: systemd: bash completion does not work Classification: openSUSE Product: openSUSE Factory Version: 13.1 Milestone 1 Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: fcrozat@suse.com ReportedBy: jslaby@suse.com QAContact: qa-bugs@suse.de Found By: --- Blocker: --- # systemctl stat<TAB><TAB> results in nothing # systemctl <TAB><TAB> results in cwd listing. This is a regression in factory, it used to work... . /usr/share/bash-completion/completions/systemctl makes it work again of course. Should I link it manually to /etc/bash_completion.d/ or what is the expected user's action here? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=821411
https://bugzilla.novell.com/show_bug.cgi?id=821411#c1
Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=821411
https://bugzilla.novell.com/show_bug.cgi?id=821411#c2
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=821411
https://bugzilla.novell.com/show_bug.cgi?id=821411#c3
Jiri Slaby
The old path will not disappear next few years but it's true that the files shold become part of /usr/share/bash-completion/completions/
In that case bash doesn't load them... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=821411
https://bugzilla.novell.com/show_bug.cgi?id=821411#c
Jiri Slaby
https://bugzilla.novell.com/show_bug.cgi?id=821411
https://bugzilla.novell.com/show_bug.cgi?id=821411#c4
--- Comment #4 from Jiri Slaby
https://bugzilla.novell.com/show_bug.cgi?id=821411
https://bugzilla.novell.com/show_bug.cgi?id=821411#c5
--- Comment #5 from Dr. Werner Fink
From my point of view this should be done by /etc/profile.d/bash_completion.sh ... but I'm not maintainer of this package. Even if I've fixed the latest bug of this package. IMHO the completion scheme of the bash is a bit broken as if is very fragile
-- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=821411
https://bugzilla.novell.com/show_bug.cgi?id=821411#c6
Jiri Slaby
if test -e /etc/bash_completion ; then . /etc/bash_completion elif test -s /etc/profile.d/bash_completion.sh ; then . /etc/profile.d/bash_completion.sh elif test -s /etc/profile.d/complete.bash ; then . /etc/profile.d/complete.bash fi for s in /etc/bash_completion.d/*.sh ; do test -r $s && . $s done if test -e $HOME/.bash_completion ; then . $HOME/.bash_completion fi if test -f /etc/bash_command_not_found ; then . /etc/bash_command_not_found fi ;;
-- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=821411
https://bugzilla.novell.com/show_bug.cgi?id=821411#c7
--- Comment #7 from Jiri Slaby
From my point of view this should be done by /etc/profile.d/bash_completion.sh
I don't have that file. Where does it come from? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=821411
https://bugzilla.novell.com/show_bug.cgi?id=821411#c9
--- Comment #9 from Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=821411
https://bugzilla.novell.com/show_bug.cgi?id=821411#c11
--- Comment #11 from Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=821411
https://bugzilla.novell.com/show_bug.cgi?id=821411#c12
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=821411
https://bugzilla.novell.com/show_bug.cgi?id=821411#c13
--- Comment #13 from Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=821411
https://bugzilla.novell.com/show_bug.cgi?id=821411#c14
Jiri Slaby
it works if you have bash-completion packaged installed. Which is not the case by default (and we had systemd completion working without requiring bash-completion being installed, before).
which is my case => reopen. If bash upstream forces /usr/share/bash-completion/ to be used instead of /etc/bash_completion.d, it should behave the same. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=821411
https://bugzilla.novell.com/show_bug.cgi?id=821411#c15
--- Comment #15 from Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=821411
https://bugzilla.novell.com/show_bug.cgi?id=821411#c16
--- Comment #16 from Jiri Slaby
Upstream of bash != Upstream of bash-completion
And no it should not behave the same as the former case *all* function files had been sourced whereas the new solution now load those files on demand. This will speed up the start of an interactive shell.
Ok, so what should I do, without installing bash-completion package, to have completion files under /usr/share/bash-completion/ working? It does not work ATM. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=821411
https://bugzilla.novell.com/show_bug.cgi?id=821411#c17
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=821411
https://bugzilla.novell.com/show_bug.cgi?id=821411#c18
Jiri Slaby
What is wrong with
zypper in bash-completion
please tell me.
The added scp bells and whistles support for example. You ask a wrong question. The right one is why is not handling of /usr/share/bash-completion/ taken care of in the same package as is for /etc/bash_completion.d/ ? Note I'm talking about *aaa_base* -- this is where /etc/bash_completion.d is handled, not in bash-completion. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=821411
https://bugzilla.novell.com/show_bug.cgi?id=821411#c19
--- Comment #19 from Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=821411
https://bugzilla.novell.com/show_bug.cgi?id=821411#c20
--- Comment #20 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=821411
https://bugzilla.novell.com/show_bug.cgi?id=821411#c21
Jiri Slaby
This is an autogenerated message for OBS integration: This bug (821411) was mentioned in https://build.opensuse.org/request/show/176443 Factory / aaa_base
Thanks a lot. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com