FW: sed command grouping brace match problem

"Caldwell, David (Overwatch Systems)" <[email protected]>
Newsgroups gmane.comp.gnu.utils.bugs
Message-ID <6FF1F3139F8DF248A26BB3934C5D8FC80D77B45E@TXAMASNWH022.ent.textron.com>
I saw no evidence that my email to [email protected]<mailto:[email protected]> had any effect, so now I'm trying the email address in the sed --version output.

David

From: Caldwell, David (Overwatch Systems)
Sent: Friday, June 15, 2012 7:43 PM
To: '[email protected]'
Subject: sed command grouping brace match problem

Hi,

I'm using Cygwin with sed version 4.2.1.

I can't get command grouping to work with both the open & closing braces on the same line when one of the commands is "r filename":
sed '/pattern/ { N; N; r fileToInsert }'

Attached is a script that reproduces the problem.

David
reproduceBug (application/octet-stream, 682 B) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.