Bug 815810 - [RFE] history of bash is lost running multiple instances in parallel
Summary: [RFE] history of bash is lost running multiple instances in parallel
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: setup
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Ondrej Vasik
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-04-24 14:50 UTC by Account closed by user
Modified: 2012-07-13 11:01 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-07-13 11:01:27 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Account closed by user 2012-04-24 14:50:38 UTC
add "shopt -s histappend" to /etc/bashrc to avoid it.

histappend:
If set, the history list is appended to the file named by the value of  the HISTFILE  variable  when  the  shell exits, rather than overwriting the file.

Comment 1 Ondrej Vasik 2012-04-24 22:04:11 UTC
Thanks for the suggestion. I'm just thinking why it was not added there earlier. Only thing I can think about is the potential privacy reason - and for root user potentially maybe even security reasons. Maybe it would be better to add it into /etc/skel/.bashrc - so it will get active for common users, but will be not used for the root.

Comment 2 Ondrej Vasik 2012-04-24 22:05:25 UTC
Adding bash maintainer to CC, Roman, what do you think about this RFC?

Comment 3 Roman Rakus 2012-04-25 13:34:28 UTC
I have nothing against it. I'm not sure about any privacy nor security reasons.

Comment 4 Account closed by user 2012-06-13 11:18:57 UTC
also "history -a" is needed in bashrc.

Comment 5 Ondrej Vasik 2012-07-13 11:01:27 UTC
Done in setup-2.8.56-1.fc18, closing RAWHIDE.


Note You need to log in before you can comment on or make changes to this bug.