Improved command-not-found support

Bug #5120 reported by Zygmunt Krynicki
4
Affects Status Importance Assigned to Milestone
Gnu Bash
Invalid
Undecided
Unassigned
bash (Ubuntu)
Fix Released
Medium
Matthias Klose

Bug Description

Command-not-found support patch does not check the return value from the _handle function. Hence it's impossible to fall back to the default message automatically. The patch should also check the return.

Revision history for this message
Zygmunt Krynicki (zyga) wrote : Corrected patch

This patch checks the return value.

Matthias Klose (doko)
Changed in bash:
assignee: nobody → doko
status: New → Fixed
Revision history for this message
Mark Shuttleworth (sabdfl) wrote : Re: [Bug 5120] Improved command-not-found support

Matthias Klose wrote:

>Task: ubuntu bash
> Status: New => Fixed
> Explanation: fixed in 3.1-0ubuntu2
>
>
W00t! How did you go about hte fix, Matthias? I'm very happy to see this
in action.

Mark

Revision history for this message
Matthias Klose (doko) wrote :

Mark Shuttleworth schrieb:
> W00t! How did you go about hte fix, Matthias? I'm very happy to see this
> in action.

the fix didn't change the behaviour, just added a missing error message.
the patch itself can be found in breezy as well.

Revision history for this message
Zygmunt Krynicki (zyga) wrote :

Hello Mark.

You can already see this in action, pull the bzr branch from http://ubuntu.suxx.pl/command-not-found--main and build :-)

Really sweet, I hope you'll like it.

Revision history for this message
dino99 (9d9) wrote :

outdated

Changed in gnubash:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.