terminal sometime closes when non-existent command is invoked in the background

Bug #227343 reported by Flamma
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
command-not-found
Fix Released
Medium
Zygmunt Krynicki
command-not-found (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Calling something similar to

$ not-installed-app &

closes gnome-terminal or xterm.

Redefining the function command_not_found_handle as anyo other thing prevents the "crash".

Tags: close terminal
Revision history for this message
Pavol Rusnak (prusnak) wrote :

This is fixed in openSUSE command_not_found_handler, which does extra checks:

http://repo.or.cz/w/scout.git?a=blob;f=handlers/bin/command_not_found_bash;hb=HEAD

Revision history for this message
Zygmunt Krynicki (zyga) wrote :

Thanks for the report.

I'm changing to won't fix as the original 0.2.x branch is not used by anoyne and ubuntu's version already has the fix. I'll revisit this issue for the 0.4.x alpha release

Oh and one more thing: repo.or.cz is not responding here in poland so I cannot look at the fix, is there any other way of getting that code without installing suse?

Changed in command-not-found:
status: New → Won't Fix
Revision history for this message
Zygmunt Krynicki (zyga) wrote :

I made a mistake - this issue is still present. I'll track this for the 0.4.x release, thanks.

Changed in command-not-found:
assignee: nobody → Zygmunt Krynicki (zkrynicki)
importance: Undecided → Medium
status: Won't Fix → Confirmed
Revision history for this message
Zygmunt Krynicki (zyga) wrote :

I'll try to get rid of this by the time alpha is out

Changed in command-not-found:
milestone: none → alpha
summary: - terminal closes when a non installed command is called in background
+ terminal sometime closes when non-existent command is invoked in the
+ background
affects: ubuntu → command-not-found (Ubuntu)
Revision history for this message
Michael Vogt (mvo) wrote :

I'm setting this to fix released for ubuntu because we have the fix in the bash handler. Feel free to leave the upstream task open

Changed in command-not-found (Ubuntu):
status: New → Fix Released
Revision history for this message
Zygmunt Krynicki (zyga) wrote :

I'll try to integrate the code from suse, thanks

Changed in command-not-found:
status: Confirmed → Fix Released
status: Fix Released → In Progress
milestone: none → 0.2.42
Zygmunt Krynicki (zyga)
Changed in command-not-found:
status: In Progress → Fix Committed
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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