FS#49038 - [gnome-terminal] deletes bash history when closed if it has more than 1 tab open

Attached to Project: Arch Linux
Opened by Todo ays (entodoays) - Thursday, 21 April 2016, 10:23 GMT
Last edited by Jan Alexander Steffens (heftig) - Sunday, 19 June 2016, 16:15 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jan de Groot (JGC)
Jan Alexander Steffens (heftig)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description: When using gnome-terminal with more than one tab, if the terminal is closed without closing the tabs one by one, bash history is cleared completely.

Steps to reproduce:
Open Gnome terminal and open two tabs.
Type a command in each tab.
Close gnome terminal by pressing the window close decoration button.
Bash history is deleted.
This task depends upon

Closed by  Jan Alexander Steffens (heftig)
Sunday, 19 June 2016, 16:15 GMT
Reason for closing:  Not a bug
Additional comments about closing:  Gnome-Terminal does not touch bash history; this is not a Gnome-Terminal problem.
Comment by Alif (alive4ever) - Sunday, 19 June 2016, 15:54 GMT
If you want to save bash_history, you should specify so in the ~/.bashrc
```
HISTFILESIZE=5000
HISTFILE=~/.bash_history
shopt -s histappend
```
Comment by Todo ays (entodoays) - Sunday, 19 June 2016, 16:02 GMT
gnome-terminal IS saving bash history. The bug is that when you have more than one tab open, if you close the terminal, the history is deleted. It seems that the two tabs try to save the history at the same time and the history is reset.

Loading...