bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

HISTCONTROL=erasedups is ignored while saving history


From: Alfonsas Stonis
Subject: HISTCONTROL=erasedups is ignored while saving history
Date: Sun, 3 Feb 2013 19:44:05 +1100

Configuration Information [Automatically generated, do not change]:
Machine: x86_64
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64'
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-pc-linux-gnu'
-DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash' -DSHELL
-DHAVE_CONFIG_H   -I.  -I../bash -
I../bash/include -I../bash/lib  -D_FORTIFY_SOURCE=2 -g -O2
-fstack-protector --param=ssp-buffer-size=4 -Wformat
-Werror=format-security -Wall
uname output: Linux laptopas 3.5.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. Repeated commands are still added to
history file completely ignoring HISTCONTROL.

Repeat-By:
    Type the same comand few times. For exmple: ls, ls
    Type history and you will see only one ls command
    Exit bash
    Enter bash and type history. You will see repeated ls command.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]