bug-bash
[Top][All Lists]
Advanced

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

history lines can be deleted even with histreedit = off


From: eravin
Subject: history lines can be deleted even with histreedit = off
Date: Mon, 19 Mar 2007 18:46:35 -0400 (EDT)

Configuration Information [Automatically generated, do not change]:
Machine: i386
OS: netbsdelf3.0
Compiler: gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i386' 
-DCONF_OSTYPE='netbsdelf3.0' -DCONF_MACHTYPE='i386-unknown-netbsdelf3.0' 
-DCONF_VENDOR='unknown' -DLOCALEDIR='/pkg/bash-3.2/share/locale' 
-DPACKAGE='bash' -DSHELL  -DHAVE_CONFIG_H   -I.  -I. -I./include -I./lib 
-I./lib/intl -I/devel/build/NetBSD/bash/bash-3.2/lib/intl  
-Wl,-Map,/tmp/pipes/bash-3.2
uname output: NetBSD panix5.panix.com 3.1_RC3 NetBSD 3.1_RC3 (PANIX-35) #0: Wed 
Oct 18 22:28:22 EDT 2006  
root@juggler.panix.com:/devel/netbsd/3.1-RC3/src/sys/arch/i386/compile/PANIX-35 
i386
Machine Type: i386-unknown-netbsdelf3.0

Bash Version: 3.2
Patch Level: 0
Release Status: release

Description:

Even with histreedit set to off (the default), bash allows the user to
delete history lines if the user presses  Control-U, and then uses
Control-N or Control-P to move up or down in the history.  Problem
does not seem platform-specific since it also happens on our Linux
boxes.

Repeat-By:

Enter bash in interactive mode. Confirm histredit is off.  Type a
few commands in.  Use control-P a few times to scroll up in the
command history.  Press control-U, then Control-N a few times to
scroll down back to the bottom.  Then type in "history | tail".
You will see a blank line with the "*" marked to show that you have
just edited your history, as in the example below:

$ ~/ [2] $ shopt histreedit
histreedit      off
$ ~/ [2] $ history | tail
  595  history | tail
  596  pwd
  597  history | tail
  598  history | tail -20
  599  one
  600  two
  601*
  602  four
  603  five
  604  history | tail





reply via email to

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