Re: HISTCONTROL=erasedups is ignored while saving history

2013-02-03 Thread Chet Ramey
On 2/3/13 3:44 AM, Alfonsas Stonis wrote: > > Bash Version: 4.2 > Patch Level: 37 > Release Status: release > > Description: > HISTCONTROL=erasedups affects only what is showen by history command, > but does not affect what is saved. Repeated commands are still

HISTCONTROL=erasedups is ignored while saving history

2013-02-03 Thread Alfonsas Stonis
0-23-generic #35-Ubuntu SMP Thu Jan 24 13:15:40 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux Machine Type: x86_64-pc-linux-gnu Bash Version: 4.2 Patch Level: 37 Release Status: release Description: HISTCONTROL=erasedups affects only what is showen by history command, but does not affect what is saved.

Re: HISTCONTROL=erasedups

2007-05-10 Thread Thilo Six
Thilo Six wrote the following on 10.05.2007 18:56: > OK then thank you and i would like to open a wishlist bug for it. ;) ...and in the interim we probably should add a notice to the manpage, that erasedups currently deons“t work session persistent. > bye Thilo -- i am on Ubuntu 2.6 KDE - so

Re: HISTCONTROL=erasedups

2007-05-10 Thread Thilo Six
Chet Ramey wrote the following on 10.05.2007 05:46: > If you want to force the history file to be completely rewritten, you > can use `history -w' at shell exit to rewrite it. $ top $ htop $ top $ htop $ history 1 top 2 htop 3 history $ history -w in new shell: $ history 1

Re: HISTCONTROL=erasedups

2007-05-10 Thread Chet Ramey
> Chet Ramey wrote: > > If you want to force the history file to be completely rewritten, you > > can use `history -w' at shell exit to rewrite it. There is, unfortunately, > > currently no easy way to force the `rewrite-at-exit' behavior. > > Could a shell trap be used to do this? > > trap 'h

Re: HISTCONTROL=erasedups

2007-05-09 Thread Bob Proulx
Chet Ramey wrote: > If you want to force the history file to be completely rewritten, you > can use `history -w' at shell exit to rewrite it. There is, unfortunately, > currently no easy way to force the `rewrite-at-exit' behavior. Could a shell trap be used to do this? trap 'history -w' EXIT

Re: HISTCONTROL=erasedups

2007-05-09 Thread Chet Ramey
Thilo Six wrote: > Hello > > Today i came across this neat feature but unfortunately i have a problem with > it. > > ~/.bashrc > <-------- > export HISTCONTROL=erasedups > > > > $ history > 1 hi

Re: HISTCONTROL=erasedups

2007-05-09 Thread Thilo Six
Thilo Six wrote the following on 09.05.2007 23:20: > Hello sorry forgot to mention: $ echo $BASH_VERSION 3.2.13(1)-release -- i am on Ubuntu 2.6 KDE - some friend of mine gpg key: 0x4A411E09 ___ Bug-bash mailing list Bug-bash@gnu.org http://list

HISTCONTROL=erasedups

2007-05-09 Thread Thilo Six
Hello Today i came across this neat feature but unfortunately i have a problem with it. ~/.bashrc < export HISTCONTROL=erasedups > $ history 1 history $ top $ htop $ top $ htop $ history 1 top 2 htop 3 histo