command no found does not recommend bash builtins

Bug #505830 reported by Rory McCann
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
command-not-found
Confirmed
Wishlist
Unassigned
command-not-found (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: command-not-found

comnmand-not-found does not recommand any of the bash builtin commands.

To reproduce:

/usr/lib/command-not-found -- cvd
No command 'cvd' found, did you mean:
 Command 'cdv' from package 'codeville' (universe)
 Command 'cv' from package 'radiance' (universe)
 Command 'cvt' from package 'xserver-xorg-core' (main)
 Command 'cvs' from package 'cvsnt' (universe)
 Command 'cvs' from package 'cvs' (main)
 Command 'cvsd' from package 'cvsd' (universe)
cvd: command not found

It should also recommand 'cd', the bash builtin

ProblemType: Bug
Architecture: i386
Date: Mon Jan 11 10:27:20 2010
DistroRelease: Ubuntu 9.10
Package: command-not-found 0.2.38ubuntu4
PackageArchitecture: all
ProcEnviron:
 PATH=(custom, user)
 LANG=en_IE.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-16.53-generic
SourcePackage: command-not-found
Uname: Linux 2.6.31-16-generic i686

Revision history for this message
Rory McCann (rorymcc) wrote :
Zygmunt Krynicki (zyga)
Changed in command-not-found:
importance: Undecided → Wishlist
status: New → Confirmed
assignee: nobody → Zygmunt Krynicki (zkrynicki)
Zygmunt Krynicki (zyga)
Changed in command-not-found:
milestone: none → 0.2.42
status: Confirmed → In Progress
Zygmunt Krynicki (zyga)
Changed in command-not-found:
status: In Progress → Fix Committed
Zygmunt Krynicki (zyga)
Changed in command-not-found (Ubuntu):
status: New → Confirmed
Revision history for this message
Zygmunt Krynicki (zyga) wrote :

This is no longer in the current trunk. It was in an older rewrite attempt. Marking as confirmed again.

Changed in command-not-found:
status: Fix Committed → Confirmed
Revision history for this message
Benjamin Griffin (bgriffin) wrote :

Very closely related, it does not suggest ksh built-ins. Oh, if I had a nickel for every time I tried to use ksh's "r" (built-in alias) in bash and got a suggestion to install the package "littler" I could pay for someone to fix this. (Note that I never seem to have this problem on computers with ksh already installed.)

Zygmunt Krynicki (zyga)
Changed in command-not-found:
assignee: Zygmunt Krynicki (zkrynicki) → nobody
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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