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

Characters aren't being properly escaped/evaluated in a Bash

2007-05-09 Thread garrett . w . cooper
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: /usr/intel/bin/gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-unknown-linux-gnu' -DCONF_VENDOR='unknown' -DLOCALEDIR='/

Re: up arrow to repeat command

2007-05-09 Thread Bob Proulx
_freak_ wrote: > I use the up arrow to repeat commands in the bash shell. One thing I am used > to from csh is when I have a command I want to repeat that starts with "vi" > I can type "vi" and then hit "up arrow" and it will repeat all the vi > commands that I have used. Bash does not seem to do

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 history > > $ top > $ htop > $ top > $ htop > $ h

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 history i clos

Re: up arrow to repeat command

2007-05-09 Thread Chet Ramey
_freak_ wrote: > I use the up arrow to repeat commands in the bash shell. One thing I am used > to from csh is when I have a command I want to repeat that starts with "vi" > I can type "vi" and then hit "up arrow" and it will repeat all the vi > commands that I have used. Bash does not seem to do

up arrow to repeat command

2007-05-09 Thread _freak_
I use the up arrow to repeat commands in the bash shell. One thing I am used to from csh is when I have a command I want to repeat that starts with "vi" I can type "vi" and then hit "up arrow" and it will repeat all the vi commands that I have used. Bash does not seem to do this or at least I ca