I'm on ubuntu 10.4 and my shell is bash. When I open several gnome terminals and close them history is properly appended. When I enter shopt it says among other things:

histappend      off

Can anyone tell me where the append behaviour is configured?

link|improve this question

40% accept rate
1  
retagging 'ubuntu-10.04-lts' since ubuntu-10.10 isn't out yet. tho i hear it's to be named something Meerkat. – quack quixote May 1 '10 at 17:40
1  
btw, my bash shells on Lucid all show histappend as on ... no tweaks yet ... have you tweaked your bash configuration already? – quack quixote May 1 '10 at 17:45
@quack: Thanks, I'm ahead of my time, as always;-) – Ludwig Weinzierl May 7 '10 at 3:45
@quack: I have upgraded this install several times, so I'm not 100% sure. For me it doesn't matter if histappend is on or off, history is always appended. What I'm really curious about is why this happens? It would be insightful, if you could shopt -u histappend and tell me if it is still appended in your install? – Ludwig Weinzierl May 7 '10 at 3:51
feedback

1 Answer

histappend is the setting I would expect to control this. Since those aren't login shells, it won't be something going on in /etc/bash.bash.logout or ~/.bash_logout. Check to see if a trap is set by entering trap -p. Also do echo $PROMPT_COMMAND to see if something is going on there.

link|improve this answer
echo $PROMPT_COMMAND returns echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD/$HOME/~}\007". trap -p returns nothing. I have no /etc/bash.logout and ~/.bash_logout contains nothing regaring history. – Ludwig Weinzierl May 1 '10 at 14:35
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.