sed: allow d and y functions in { } function list

2014-10-22 Thread Christopher Zimmermann
Hi $ sed -e { y/o/u/ } sed: 1: { y/o/u/ }: extra text at the end of a transform command but this is allowed according to the manual: Functions can be combined to form a function list, a list of sed functions separated by newlines, as follows: { function

Re: sed: allow d and y functions in { } function list

2014-10-22 Thread Philip Guenther
On Wed, Oct 22, 2014 at 8:37 AM, Christopher Zimmermann chr...@openbsd.org wrote: $ sed -e { y/o/u/ } sed: 1: { y/o/u/ }: extra text at the end of a transform command but this is allowed according to the manual: Functions can be combined to form a function list, a list of sed

Re: sed: allow d and y functions in { } function list

2014-10-22 Thread Christopher Zimmermann
On Wed, 22 Oct 2014 10:46:43 -0700 Philip Guenther guent...@gmail.com wrote: On Wed, Oct 22, 2014 at 8:37 AM, Christopher Zimmermann chr...@openbsd.org wrote: $ sed -e { y/o/u/ } sed: 1: { y/o/u/ }: extra text at the end of a transform command but this is allowed according to the

Re: sed: allow d and y functions in { } function list

2014-10-22 Thread Christopher Zimmermann
On Wed, 22 Oct 2014 21:57:14 +0200 Ingo Schwarze schwa...@usta.de wrote: So the newline before the close-brace is required. Since the code matches the spec, I think we should change the doc to match both of them. Or is there some reason this extension is required? That would be the