Bug 1110266

Summary: zsh: invalid syntax for command-not-found
Product: [openSUSE] openSUSE Tumbleweed Reporter: Marguerite Su <i>
Component: BasesystemAssignee: Ismail Dönmez <ismail>
Status: RESOLVED DUPLICATE QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: astieger
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Marguerite Su 2018-10-01 05:01:07 UTC

With zsh 5.6.2 (x86_64-suse-linux-gnu) and TW 20180920 I experienced this:

$ CD ..
  File "/usr/bin/command-not-found", line 15
SyntaxError: invalid syntax

And it didn't occur with bash(so our /usr/bin/command-not-found is good)

After adding this line to my .zshrc, everything works again.

unfunction command_not_found_handler

So something in zsh's command_not_found_handler implementation is broken.

Comment 1 Marguerite Su 2018-10-01 05:01:48 UTC
Assigned to Ismail
Comment 2 Andreas Stieger 2018-10-01 07:15:25 UTC
looks like a dup

*** This bug has been marked as a duplicate of bug 1109896 ***