Bug ID 1110266
Summary zsh: invalid syntax for command-not-found
Classification openSUSE
Product openSUSE Tumbleweed
Version Current
Hardware Other
OS Other
Status NEW
Severity Normal
Priority P5 - None
Component Basesystem
Assignee bnc-team-screening@forge.provo.novell.com
Reporter i@marguerite.su
QA Contact qa-bugs@suse.de
Found By ---
Blocker ---

Hi

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
    print(file=sys.stderr)
              ^
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.

Marguerite


You are receiving this mail because: