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
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='/
_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
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
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
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
_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
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