Using Zsh, it doesn't show an error message when command not found
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
command-not-found (Debian) |
Fix Released
|
Unknown
|
|||
command-not-found (Ubuntu) |
Fix Released
|
Low
|
Unassigned | ||
Bionic |
New
|
Undecided
|
Unassigned | ||
Eoan |
Won't Fix
|
Undecided
|
Unassigned | ||
Focal |
New
|
Undecided
|
Unassigned |
Bug Description
[Impact]
In zsh, typing a command that is unknown to command-not-found does not trigger a command not found message, but does nothing. If your command were silent, you might think it was executed.
[Test case]
Type a command in zsh that command-not-found does not know about, and check there is an error message that says command not found.
[Regression potential]
Given that this only affects a cnf handler, any regressions that could arise would be confined to that.
There should not be any regressions, as anything that would regress now should have also regressed when zsh itself changed behavior and caused this bug.
[Original bug report]
- Using latest Ubuntu Bionic, full updated.
- Using Zsh.
My ~/.zshrc includes the following line:
. /etc/zsh_
When I type (for example):
$ sdlkfjslkdfjkdslf
it doesn't say nothing. No error message.
If I change the line #11 of /etc/zsh_
/usr/
I think the above option should be removed from /etc/zsh_
tags: | added: command-not-found zsh |
tags: | removed: zsh |
tags: | added: zsh |
tags: | added: bionic |
Changed in command-not-found (Ubuntu): | |
importance: | Undecided → Low |
status: | Confirmed → Triaged |
affects: | command-not-found → ubuntu |
no longer affects: | ubuntu |
Changed in command-not-found (Debian): | |
status: | Unknown → New |
Changed in command-not-found (Ubuntu): | |
status: | Triaged → Fix Committed |
description: | updated |
Changed in command-not-found (Debian): | |
status: | New → Fix Released |
It works out-of-the-box in Ubuntu Xenial.