[Bug 435160] New: bash takes too long on "command not found"
https://bugzilla.novell.com/show_bug.cgi?id=435160 Summary: bash takes too long on "command not found" Product: openSUSE 11.1 Version: Beta 2 Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: sdelcroix@novell.com QAContact: qa@suse.de Found By: --- when mistyping a cmd name in bash (or calling an uninstalled app), it takes a few seconds before getting the "Command not found" message and the prompt back. that looked very strange at first sight, Ctrl-C during that showed that bash was running /usr/bin/command-not-found, which looks like being a slow python script. I figured you're trying to do something smart, telling the user how to install the missing application, but that does not even works...
patch -p1 < patch
bash: patch: command not found
I time'd that command... takes 2 full seconds :( -- 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=435160
Michal Seben
https://bugzilla.novell.com/show_bug.cgi?id=435160
User werner@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=435160#c1
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=435160
User prusnak@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=435160#c2
Pavol Rusnak
https://bugzilla.novell.com/show_bug.cgi?id=435160
User sdelcroix@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=435160#c3
Stephane Delcroix
https://bugzilla.novell.com/show_bug.cgi?id=435160
User prusnak@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=435160#c4
Pavol Rusnak
https://bugzilla.novell.com/show_bug.cgi?id=435160
User werner@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=435160#c5
--- Comment #5 from Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=435160
User prusnak@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=435160#c6
--- Comment #6 from Pavol Rusnak
https://bugzilla.novell.com/show_bug.cgi?id=435160
User kkaempf@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=435160#c7
--- Comment #7 from Klaus Kämpf
https://bugzilla.novell.com/show_bug.cgi?id=435160
User kkaempf@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=435160#c8
Klaus Kämpf
https://bugzilla.novell.com/show_bug.cgi?id=435160
User werner@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=435160#c9
--- Comment #9 from Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=435160
User mls@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=435160#c10
--- Comment #10 from Michael Schröder
https://bugzilla.novell.com/show_bug.cgi?id=435160
User prusnak@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=435160#c11
--- Comment #11 from Pavol Rusnak
https://bugzilla.novell.com/show_bug.cgi?id=435160
User mls@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=435160#c12
--- Comment #12 from Michael Schröder
https://bugzilla.novell.com/show_bug.cgi?id=435160
User matz@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=435160#c13
--- Comment #13 from Michael Matz
https://bugzilla.novell.com/show_bug.cgi?id=435160
User prusnak@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=435160#c14
--- Comment #14 from Pavol Rusnak
https://bugzilla.novell.com/show_bug.cgi?id=435160
User prusnak@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=435160#c15
--- Comment #15 from Pavol Rusnak
https://bugzilla.novell.com/show_bug.cgi?id=435160
User werner@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=435160#c16
--- Comment #16 from Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=435160
User mvyskocil@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=435160#c17
--- Comment #17 from Michal Vyskocil
https://bugzilla.novell.com/show_bug.cgi?id=435160
User mvyskocil@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=435160#c18
--- Comment #18 from Michal Vyskocil
https://bugzilla.novell.com/show_bug.cgi?id=435160
User matz@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=435160#c19
--- Comment #19 from Michael Matz
https://bugzilla.novell.com/show_bug.cgi?id=435160
User prusnak@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=435160#c20
--- Comment #20 from Pavol Rusnak
https://bugzilla.novell.com/show_bug.cgi?id=435160
User prusnak@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=435160#c21
--- Comment #21 from Pavol Rusnak
basically a nice feature), or implement a cache just for the programs that could be looked up faster.
Users do not usually write the same missing command to console over and over. They install the package providing it as soon as they see the instructions. I don't know if caching is going to help there, because of the usage nature. -- 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=435160
User mls@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=435160#c22
--- Comment #22 from Michael Schröder
https://bugzilla.novell.com/show_bug.cgi?id=435160
User matz@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=435160#c23
--- Comment #23 from Michael Matz
https://bugzilla.novell.com/show_bug.cgi?id=435160
User mls@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=435160#c24
--- Comment #24 from Michael Schröder
https://bugzilla.novell.com/show_bug.cgi?id=435160
User prusnak@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=435160#c25
Pavol Rusnak
https://bugzilla.novell.com/show_bug.cgi?id=435160
User mls@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=435160#c26
--- Comment #26 from Michael Schröder
https://bugzilla.novell.com/show_bug.cgi?id=435160
User prusnak@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=435160#c27
--- Comment #27 from Pavol Rusnak
https://bugzilla.novell.com/show_bug.cgi?id=435160
User mls@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=435160#c28
--- Comment #28 from Michael Schröder
https://bugzilla.novell.com/show_bug.cgi?id=435160
Klaus Kämpf
https://bugzilla.novell.com/show_bug.cgi?id=435160
User prusnak@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=435160#c29
--- Comment #29 from Pavol Rusnak
https://bugzilla.novell.com/show_bug.cgi?id=435160
User matz@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=435160#c30
--- Comment #30 from Michael Matz
https://bugzilla.novell.com/show_bug.cgi?id=435160
User mls@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=435160#c31
--- Comment #31 from Michael Schröder
https://bugzilla.novell.com/show_bug.cgi?id=435160
User prusnak@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=435160#c32
--- Comment #32 from Pavol Rusnak
https://bugzilla.novell.com/show_bug.cgi?id=435160
User mls@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=435160#c33
Michael Schröder
https://bugzilla.novell.com/show_bug.cgi?id=435160
User matz@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=435160#c34
--- Comment #34 from Michael Matz
https://bugzilla.novell.com/show_bug.cgi?id=435160
User prusnak@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=435160#c35
--- Comment #35 from Pavol Rusnak
https://bugzilla.novell.com/show_bug.cgi?id=435160
User mls@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=435160#c36
--- Comment #36 from Michael Schröder
https://bugzilla.novell.com/show_bug.cgi?id=435160
User mls@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=435160#c37
--- Comment #37 from Michael Schröder
https://bugzilla.novell.com/show_bug.cgi?id=435160
User prusnak@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=435160#c38
--- Comment #38 from Pavol Rusnak
https://bugzilla.novell.com/show_bug.cgi?id=435160
User mls@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=435160#c39
--- Comment #39 from Michael Schröder
https://bugzilla.novell.com/show_bug.cgi?id=435160
User prusnak@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=435160#c40
--- Comment #40 from Pavol Rusnak
https://bugzilla.novell.com/show_bug.cgi?id=435160
User mls@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=435160#c41
--- Comment #41 from Michael Schröder
https://bugzilla.novell.com/show_bug.cgi?id=435160
User bili@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=435160#c42
Li Bin
https://bugzilla.novell.com/show_bug.cgi?id=435160
User sdelcroix@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=435160#c43
--- Comment #43 from Stephane Delcroix
https://bugzilla.novell.com/show_bug.cgi?id=435160
User werner@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=435160#c44
--- Comment #44 from Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=435160
User sdelcroix@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=435160#c45
--- Comment #45 from Stephane Delcroix
Simply do unset command_not_found_handle and be fine, you may add this to your personal ~/.bashrc file
oh, am fine. I was speaking of the distribution default, not my egotist one. -- 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=435160
User werner@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=435160#c46
--- Comment #46 from Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=435160
User aj@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=435160#c47
Andreas Jaeger
Regexp for filelists is
^/(s?bin|usr/(s?bin|games)|opt/(kde3|gnome)/s?bin)/%s$
which matches files in
{ /bin, /sbin, /usr/bin, /usr/sbin, /usr/games, /opt/kde3/bin, /opt/kde3/sbin, /opt/gnome/bin, /opt/gnome/sbin }
With openSUSE 11.1 there should be no /opt/gnome/ anymore and there's neither /opt/kde3/sbin So, let's simplify the regex to look only in: { /bin, /sbin, /usr/bin, /usr/sbin, /usr/games, /opt/kde3/bin} What about the following (untested): ^/(s?bin|usr/(s?bin|games)|opt/kde3/bin)/%s$ -- 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=435160
User prusnak@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=435160#c48
Pavol Rusnak
https://bugzilla.novell.com/show_bug.cgi?id=435160
User froh@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=435160#c49
Susanne Oberhauser
participants (1)
-
bugzilla_noreply@novell.com