bug-bash
[Top][All Lists]
Advanced

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

History event execution in command substition


From: Zigmund . Ozean
Subject: History event execution in command substition
Date: Fri, 9 Jan 2015 17:58:26 -0500

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../. -I.././include -I.././lib  -D_FORTIFY_SOURCE=2 -g 
-O2 -fstack-protector-strong -Wformat -Werror=format-security -Wall
uname output: Linux zig-home 3.16.0-28-generic #38-Ubuntu SMP Fri Dec 12 
17:37:40 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
Machine Type: x86_64-pc-linux-gnu

Bash Version: 4.3
Patch Level: 30
Release Status: release

Description:
        Inside command substition, an exclamation character will always try 
execute a command from history.  Quoting has an unexpected result.
Repeat-By:
        echo "$( echo '!' )"
        bash: !': event not found

        echo "$( echo "!" )"
        bash: !': event not found

        echo "$( echo ! )"
        !

        echo "$( echo "\!" )"
        \!

        echo "!"
        !



reply via email to

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