bug-bash
[Top][All Lists]
Advanced

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

Re: bash inserts semicolon into history when using here-document


From: Dennis Williamson
Subject: Re: bash inserts semicolon into history when using here-document
Date: Tue, 5 Oct 2010 04:43:24 -0500

On Mon, Oct 4, 2010 at 7:26 PM, Robert Citek <robert.citek@gmail.com> wrote:
> Configuration Information [Automatically generated, do not change]:
> Machine: i486
> OS: linux-gnu
> Compiler: gcc
> Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i486'
> -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i486-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   -g -O2 -Wall
> uname output: Linux lucid-unr 2.6.32-25-generic #44-Ubuntu SMP Fri Sep
> 17 20:26:08 UTC 2010 i686 GNU/Linux
> Machine Type: i486-pc-linux-gnu
>
> Bash Version: 4.1
> Patch Level: 5
> Release Status: release
>
> Description:
>
> When using a here-document at the command line, bash inserts a
> semicolon into the history.
>
>
> Repeat-By:
>
> I type the following at a bash prompt:
>
> $ { cat <<eof
> eof
> }
>
> then press up-arrow.  I see this:
>
> $ { cat <<eof
> eof
> ; }
>
> If I press Enter, I get an error:
>
> -su: syntax error near unexpected token `;'
>
> Bash has inserted a semi-colon before the "}".
>
>

And up-arrow after that shows two semicolons.



reply via email to

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