[Bug 1060111] New: bash: have: command not found
http://bugzilla.suse.com/show_bug.cgi?id=1060111 Bug ID: 1060111 Summary: bash: have: command not found Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: x86-64 OS: Linux Status: NEW Severity: Minor Priority: P5 - None Component: Basesystem Assignee: bnc-team-screening@forge.provo.novell.com Reporter: matthias@mailaender.name QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- I just encountered this in openSUSE Tumbleweed where every terminal displays
bash: have: command not found upon startup.
http://www.jerous.org/2016/09/19/bash-have-not-found describes the problem and proposes a solution. I don't know if it is the correct approach. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1060111 Chenzi Cao <chcao@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|bnc-team-screening@forge.pr |werner@suse.com |ovo.novell.com | -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1060111 http://bugzilla.suse.com/show_bug.cgi?id=1060111#c1 Dr. Werner Fink <werner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |matthias@mailaender.name Flags| |needinfo?(matthias@mailaend | |er.name) --- Comment #1 from Dr. Werner Fink <werner@suse.com> --- (In reply to Matthias Mailänder from comment #0)
I just encountered this in openSUSE Tumbleweed where every terminal displays
bash: have: command not found upon startup.
http://www.jerous.org/2016/09/19/bash-have-not-found describes the problem and proposes a solution. I don't know if it is the correct approach.
I'm more interested which script or resource file does use `have' as I do not see this -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1060111 http://bugzilla.suse.com/show_bug.cgi?id=1060111#c2 Dr. Werner Fink <werner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |arvidjaar@gmail.com, | |binner@kde.org, | |cornelis@solcon.nl, | |gunreben@t-online.de, | |hare@suse.com, | |jthumshirn@suse.com, | |lars.vogdt@suse.com, | |mchang@suse.com, | |tchvatal@suse.com --- Comment #2 from Dr. Werner Fink <werner@suse.com> --- /etc/bash_completion.d/lyx is using have lyx && _lyx() { and so on /etc/bash_completion.d/bumblebee /etc/bash_completion.d/grub /etc/bash_completion.d/ufw.sh /etc/bash_completion.d/fcoeadm /etc/bash_completion.d/lldpad /etc/bash_completion.d/lldptool /etc/bash_completion.d/tuxpaint-completion.bash and upstream of bash-completion has decided to undefine this internal shell function -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1060111 http://bugzilla.suse.com/show_bug.cgi?id=1060111#c3 --- Comment #3 from Andrei Borzenkov <arvidjaar@gmail.com> --- (In reply to Dr. Werner Fink from comment #2)
/etc/bash_completion.d/... ...
and upstream of bash-completion has decided to undefine this internal shell function
It is still defined during sourcing of legacy completions from /etc/bash_completion.d. So none of files you listed should be a problem, unless someone tries to source them outside of /usr/share/bash-completion/bash_completion. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1060111 http://bugzilla.suse.com/show_bug.cgi?id=1060111#c4 --- Comment #4 from Dr. Werner Fink <werner@suse.com> --- (In reply to Andrei Borzenkov from comment #3)
(In reply to Dr. Werner Fink from comment #2)
/etc/bash_completion.d/... ...
and upstream of bash-completion has decided to undefine this internal shell function
It is still defined during sourcing of legacy completions from /etc/bash_completion.d. So none of files you listed should be a problem, unless someone tries to source them outside of /usr/share/bash-completion/bash_completion.
hmmm ... within /etc/bash.bashrc we dou source files below /etc/bash_completion.d ... maybe this bug becomes an fixed one with the commit from https://github.com/openSUSE/aaa_base/pull/48 which I've accepted and merged yesterday :) Matthias? You might try this change https://github.com/openSUSE/aaa_base/commit/75a5c347a88ebf48d4ba2ab9b3885489... and give some feedback as well -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1060111 http://bugzilla.suse.com/show_bug.cgi?id=1060111#c5 --- Comment #5 from Andrei Borzenkov <arvidjaar@gmail.com> --- (In reply to Dr. Werner Fink from comment #4)
hmmm ... within /etc/bash.bashrc we dou source files below /etc/bash_completion.d ... maybe this bug becomes an fixed one with the commit from
It fixes this bug in the sense that it won't trigger incorrect sourcing of /etc/bash_completion.d if BASH_COMPLETION_COMPAT_DIR is not defined. You still will source it if it *is* defined which does not sound right. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1060111 http://bugzilla.suse.com/show_bug.cgi?id=1060111#c6 --- Comment #6 from Matthias Mailänder <matthias@mailaender.name> --- I am a bit confused. My /usr/share/bash/bash-completion/bash_completion includes the following line: # Backwards compatibility for compat completions that use have(). # @deprecated should no longer be used; generally not needed with dynamically # loaded completions, and _have is suitable for runtime use. have() { unset -v have _have $1 && have=yes } It also contains the lines: unset -f have unset have but I don't want to manually edit this file. Especially as I don't understand what they do and why removing them helps. The only file with have is my /etc/bash_completion.d/ /etc/bash_completion.d/grub How do I test https://github.com/openSUSE/aaa_base/pull/48 in safe and secure way? Wait for the update to integrate into TW? If so, when will it be available. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1060111 http://bugzilla.suse.com/show_bug.cgi?id=1060111#c8 Dr. Werner Fink <werner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|IN_PROGRESS |RESOLVED Resolution|--- |NORESPONSE --- Comment #8 from Dr. Werner Fink <werner@suse.com> --- No report/feedback ... seems to a solved issue -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1060111 http://bugzilla.suse.com/show_bug.cgi?id=1060111#c9 Matthias Mailänder <matthias@mailaender.name> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|NORESPONSE |FIXED --- Comment #9 from Matthias Mailänder <matthias@mailaender.name> --- It is gone. Thanks! -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1060111 Matthias Mail�nder <matthias@mailaender.name> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags|needinfo?(matthias@mailaend | |er.name) | -- You are receiving this mail because: You are on the CC list for the bug.
participants (2)
-
bugzilla_noreply@novell.com
-
bugzilla_noreply@suse.com