[ubuntu-us-mi] bash here-doc and history
Robert Citek
robert.citek at gmail.com
Tue Oct 5 01:27:51 BST 2010
On Fri, Oct 1, 2010 at 11:26 AM, Scott Moser <smoser at brickies.net> wrote:
> 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
Thanks, Scott. I've sent an e-mail using bashbug.
Regards,
- Robert
More information about the ubuntu-us-mi
mailing list