[Bug 1109896] New: /etc/zsh-command-not-found executing python 2 instead of python 3.
http://bugzilla.opensuse.org/show_bug.cgi?id=1109896 Bug ID: 1109896 Summary: /etc/zsh-command-not-found executing python 2 instead of python 3. Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: 64bit OS: openSUSE Factory Status: NEW Severity: Minor Priority: P5 - None Component: Other Assignee: bnc-team-screening@forge.provo.novell.com Reporter: ldewey@suse.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- It looks like after upgrading the code for /usr/bin/command-not-found to Python 3 that the zsh function was not. Actual Results: --------------- ~ >> foo File "/usr/bin/command-not-found", line 14 print(file=sys.stderr) ^ SyntaxError: invalid syntax ~ >> Expected Results: ----------------- ~ >> foo foo: command not found ~ >> In /etc/zsh_command_not_found, within the command_not_found_handler function it reads: line 5: if [ -x /usr/bin/python ] && [ -x /usr/bin/command-not-found ]; then line 9: /usr/bin/python /usr/bin/command-not-found "${(Q)1}" zypp when it should be: line 5: if [ -x /usr/bin/python3 ] && [ -x /usr/bin/command-not-found ]; then line 9: /usr/bin/python3 /usr/bin/command-not-found "${(Q)1}" zypp -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1109896
Larry Dewey
http://bugzilla.opensuse.org/show_bug.cgi?id=1109896
http://bugzilla.opensuse.org/show_bug.cgi?id=1109896#c1
Andreas Stieger
http://bugzilla.opensuse.org/show_bug.cgi?id=1109896
http://bugzilla.opensuse.org/show_bug.cgi?id=1109896#c2
Bernhard Wiedemann
http://bugzilla.opensuse.org/show_bug.cgi?id=1109896 http://bugzilla.opensuse.org/show_bug.cgi?id=1109896#c3 --- Comment #3 from Marguerite Su --- works for me -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1109896
http://bugzilla.opensuse.org/show_bug.cgi?id=1109896#c4
--- Comment #4 from Larry Dewey
https://build.opensuse.org/request/show/636647 was accepted into Factory today. Can you please re-test with this new version (once it hits Tumbleweed)?
Absolutely! I will keep an eye out for the update to appear in the next tumbleweed release and will update this once I have tested it. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1109896
http://bugzilla.opensuse.org/show_bug.cgi?id=1109896#c6
Bernhard Wiedemann
participants (1)
-
bugzilla_noreply@novell.com