[ubuntu-us-mi] bash here-doc and history

Scott Moser smoser at brickies.net
Fri Oct 1 15:26:43 BST 2010


On Fri, 1 Oct 2010, Robert Citek wrote:

> I get the following odd behaviour with a here doc in bash:
>
> $ { cat <<eof
> eof
> }
>
> Then press up-arrow.  And I see this:
>
> $ { cat <<eof
> eof
> ; }
>
> Press Enter, I get an error:
>
> -su: syntax error near unexpected token `;'
>
> Bash has inserted a semi-colon before the "}".
>
> This is with bash 4.1.5(1)-release on Ubuntu Linux 10.04.   Anyone
> else seeing this?

I just verified on maverick. You should open a bug against bash
(ubuntu-bug bash).

I'm guessing its an upstream bug also, so you could raise it upstream.  It
looks like the appropriate place to do that is
http://tiswww.case.edu/php/chet/bash/bashtop.html#Bugs



More information about the ubuntu-us-mi mailing list