bug-bash
[Top][All Lists]
Advanced

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

history shows edited lines not the lines actually ran


From: kermit
Subject: history shows edited lines not the lines actually ran
Date: Sat, 16 Jun 2018 13:23:59 -0400 (EDT)

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-redhat-linux-gnu' 
-DCONF_VENDOR='redhat' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash' -DSHELL 
-DHAVE_CONFIG_H   -I.  -I. -I./include -I./lib   -O2 -g -pipe -Wall 
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong 
--param=ssp-buffer-size=4 -grecord-gcc-switches   -m64 -mtune=generic
uname output: Linux rednsx 2.6.32-042stab127.2 #1 SMP Thu Jan 4 16:41:44 MSK 
2018 x86_64 x86_64 x86_64 GNU/Linux
Machine Type: x86_64-redhat-linux-gnu

Bash Version: 4.2
Patch Level: 46
Release Status: release

Description:
        when you edit a line from your bash history, history shows the edited 
version, even if you never ran it
        ewriting history is generally considered bad in most contexts, and i 
found this to be counter intuitive and can't think of why anyone would want it 
this way

Repeat-By:
        echo a b^M^P^W^Necho ^Y
        shows echo a and echo b in your history, even though you ran echo a b   
and echo b, never echo a



reply via email to

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