bug-bash
[Top][All Lists]
Advanced

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

cmdhist creates unparsable history entries


From: Andreas Schwab
Subject: cmdhist creates unparsable history entries
Date: Sun, 21 Mar 2010 17:05:44 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.94 (gnu/linux)

Configuration Information [Automatically generated, do not change]:
Machine: powerpc
OS: linux-gnu
Compiler: gcc -I/usr/src/packages/BUILD/bash-4.1 
-L/usr/src/packages/BUILD/bash-4.1/../readline-6.1
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='powerpc' 
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='powerpc-suse-linux-gnu' 
-DCONF_VENDOR='suse' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash' -DSHELL 
-DHAVE_CONFIG_H   -I.  -I. -I./include -I./lib   -fmessage-length=0 -O2 -Wall 
-D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables 
-fasynchronous-unwind-tables -g -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 
-D_GNU_SOURCE -DRECYCLES_PIDS -Wall -g -std=gnu89 -Wuninitialized -Wextra 
-Wno-unprototyped-calls -Wno-switch-enum -Wno-unused-variable 
-Wno-unused-parameter -ftree-loop-linear -pipe -UDEBUG -fprofile-use
uname output: Linux igel 2.6.34-rc2 #1 SMP Sat Mar 20 23:31:35 CET 2010 ppc64 
ppc64 ppc64 GNU/Linux
Machine Type: powerpc-suse-linux-gnu

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

Description:
        command_oriented_history mishandles some here-document constructs.

Repeat-By:
        bash-4.1$ foo () { cat <<EOF
        > EOF
        > }; history 1
            1  foo () { cat <<EOF
        EOF
        ; }; history 1
        bash-4.1$ for f
        > do cat <<EOF
        > EOF
        > done; history 1
            2  for f;do cat <<EOFEOF
        ; done; history 1




reply via email to

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