[Bug 851759] New: command-not-found (cnf) broken in some situations
https://bugzilla.novell.com/show_bug.cgi?id=851759 https://bugzilla.novell.com/show_bug.cgi?id=851759#c0 Summary: command-not-found (cnf) broken in some situations Classification: openSUSE Product: openSUSE 13.1 Version: Final Platform: x86-64 OS/Version: openSUSE 13.1 Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: highwaystar.ru@gmail.com QAContact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.11 Safari/537.36 SUSE/31.0.1650.11 command-not-found produce strange output when TAB hitted after pulseaudio typed. Reproducible: Always Steps to Reproduce: 1. type in console 'pulseaudio' 2. press TAB button 2-3 times Actual Results: I get following output: pulseaudio If '_init_completion' is not a typo you can use command-not-found to lookup the package that contains it, like this: cnf _init_completion If '_init_completion' is not a typo you can use command-not-found to lookup the package that contains it, like this: cnf _init_completion If '_init_completion' is not a typo you can use command-not-found to lookup the package that contains it, like this: cnf _init_completion If '_init_completion' is not a typo you can use command-not-found to lookup the package that contains it, like this: cnf _init_completion Expected Results: command-not-found should not produce such strange output -- 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=851759 https://bugzilla.novell.com/show_bug.cgi?id=851759#c zhang jiajun <jzhang@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jzhang@suse.com AssignedTo|bnc-team-screening@forge.pr |sbrabec@suse.com |ovo.novell.com | -- 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=851759 https://bugzilla.novell.com/show_bug.cgi?id=851759#c1 Federico Vecchiarelli <fedev@gmx.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P3 - Medium CC| |fedev@gmx.net --- Comment #1 from Federico Vecchiarelli <fedev@gmx.net> 2013-12-13 07:52:42 UTC --- Definitively happening to me too. Example of what happened when I tried to hit TAB: systemd-analyze plot > ./DesIf '_init_completion' is not a typo you can use command-not-found to lookup the package that contains it, like this: cnf _init_completion I use TAB to autocomplete a few things and this is driving me insane. Thanks! -- 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=851759 https://bugzilla.novell.com/show_bug.cgi?id=851759#c2 Neven Friedrich <nevenfr@gmx.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |nevenfr@gmx.com --- Comment #2 from Neven Friedrich <nevenfr@gmx.com> 2014-05-04 08:22:57 UTC --- Install bash-completion package and add into /etc/profile.local: [[ $PS1 && -f /usr/share/bash-completion/bash_completion ]] && \ . /usr/share/bash-completion/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=851759 https://bugzilla.novell.com/show_bug.cgi?id=851759#c4 Dr. Werner Fink <werner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |pgajdos@suse.com --- Comment #4 from Dr. Werner Fink <werner@suse.com> 2014-07-22 10:00:58 UTC --- Why this bug has assigned to me? It is not my bug if the reporters are not willingly to install bash_completion If bash_completion is installed then /usr/share/bash-completion/bash_completion will be sourced by /etc/profile.d/bash_completion.sh which its self is sourced by /etc/bash.bashrc -- 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=851759 https://bugzilla.novell.com/show_bug.cgi?id=851759#c5 Petr Gajdos <pgajdos@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|pgajdos@suse.com | AssignedTo|werner@suse.com |behlert@suse.com --- Comment #5 from Petr Gajdos <pgajdos@suse.com> 2014-07-22 10:11:52 UTC --- Ok, so it is enough to install bash-completion. Stefan, could you please make sure this package is installed by default? It was not at least on my sle12 system. -- 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=851759 https://bugzilla.novell.com/show_bug.cgi?id=851759#c6 --- Comment #6 from Dr. Werner Fink <werner@suse.com> 2014-07-22 10:41:08 UTC --- For all reporters: The most completion functions used for e.g. systemd tools and as seen here for pulseaudio uses API functions of the bash_completion package. And there are many more around nowadays that is many packages will install their own completion files below /usr/share/bash-completion/completions/ which then will be loaded by the bash on demand: werner@linux:~> rpm -qf /usr/share/bash-completion/completions/* | sort -u NetworkManager-0.9.8.8-1.1.x86_64 PackageKit-0.8.11-2.3.1.x86_64 bash-completion-2.1-3.1.2.noarch dconf-0.18.0-12.2.x86_64 glib2-tools-2.38.2-8.2.x86_64 gvfs-1.18.3-5.1.x86_64 systemd-bash-completion-210-0.noarch udisks2-2.1.1-2.1.3.x86_64 Also the bash has a command_not_found_handle shell function as a hock which will inform you if a command or a shell function is not found. I'll not remove this hook. -- 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=851759 https://bugzilla.novell.com/show_bug.cgi?id=851759#c7 --- Comment #7 from Stefan Behlert <behlert@suse.com> 2014-07-22 11:21:27 UTC --- (In reply to comment #5)
Ok, so it is enough to install bash-completion.
Stefan, could you please make sure this package is installed by default? It was not at least on my sle12 system.
Ok, I'll add it as recommended to the base pattern. -- 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=851759 https://bugzilla.novell.com/show_bug.cgi?id=851759#c8 Stefan Behlert <behlert@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED AssignedTo|behlert@suse.com |pgajdos@suse.com --- Comment #8 from Stefan Behlert <behlert@suse.com> 2014-07-22 11:22:30 UTC --- Note that I can only do this for SLE, not openSUSE. -- 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=851759 https://bugzilla.novell.com/show_bug.cgi?id=851759#c9 Petr Gajdos <pgajdos@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|pgajdos@suse.com |coolo@suse.com --- Comment #9 from Petr Gajdos <pgajdos@suse.com> 2014-07-22 11:35:54 UTC --- Coolo, could you please consider bash-completion to the openSUSE pattern and close this bug appropriately? -- 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=851759 https://bugzilla.novell.com/show_bug.cgi?id=851759#c11 Stephan Kulow <coolo@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO InfoProvider| |pgajdos@suse.com --- Comment #11 from Stephan Kulow <coolo@suse.com> 2014-08-06 11:03:34 CEST --- why is command-not-found not recommending or requiring it? -- 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=851759 https://bugzilla.novell.com/show_bug.cgi?id=851759#c12 Petr Gajdos <pgajdos@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED InfoProvider|pgajdos@suse.com | --- Comment #12 from Petr Gajdos <pgajdos@suse.com> 2014-08-18 08:43:23 UTC --- See comment 3: -- 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=851759 https://bugzilla.novell.com/show_bug.cgi?id=851759#c13 Stephan Kulow <coolo@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |WORKSFORME --- Comment #13 from Stephan Kulow <coolo@suse.com> 2014-09-17 16:07:11 CEST --- systemd already recommends it, so there is no point mentioning in the patterns. It's different for SLE as the media are not made from patterns but directly -- 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