After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 570788 - Closing a tab does not save shell history
Closing a tab does not save shell history
Status: RESOLVED DUPLICATE of bug 509866
Product: gnome-terminal
Classification: Core
Component: general
2.22.x
Other All
: Normal normal
: ---
Assigned To: GNOME Terminal Maintainers
GNOME Terminal Maintainers
Depends on:
Blocks:
 
 
Reported: 2009-02-06 14:37 UTC by Florian
Modified: 2009-08-17 12:43 UTC
See Also:
GNOME target: ---
GNOME version: 2.21/2.22



Description Florian 2009-02-06 14:37:50 UTC
Please describe the problem:
When I close a tab by clicking on the close button on the tab (or using Ctrl-Maj-W), the current shell's history is not saved. 

This does not happen when using ctrl-D to close current tab, nor if you close a window using the close window button. Even if there are multiple tabs present when closing the window and you answer "Close all tabs" to the popup, the behaviour is normal and all tabs have their history saved.

So it only happens when I specifically close a tab using the small 'X' icon on the tab, or Ctrl-Maj-W to close it.


Steps to reproduce:
1. Start Gnome terminal
2. open a new tab (so that you now have two tabs)
3. type a command in one of the tab, then close just the tab in which you typed the command by clicking on the close tab icon or press Ctrl-Maj-W



Actual results:
The command you just typed is not in your history

Expected results:
The command should have been saved

Does this happen every time?
Yep

Other information:
Comment 1 Florian 2009-02-09 11:12:30 UTC
I've discovered today that in the end, it did actually save my history. So I ran a quick test: I first verified that I had no bash running using gnome-system-monitor, started 3 gnome terminal tabs, closed one using ctrl-maj-W, and, lo and behold, I still had 3 bash terminals running, instead of 2. If I closed all the remaining tabs, then all the running bash shells disappear at once.

So, the problem is that the shell is not killed when the associated tab is closed.
Comment 2 Christian Persch 2009-08-17 12:43:31 UTC
That would be bug 509866 then.

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