Subject: Re: bin/24641: possible bug in sed(1)
To: None <>
From: Christian Biere <>
List: netbsd-bugs
Date: 03/02/2004 15:41:39 wrote:
> The following script works with GNU sed 4.07, but not with sed
> in -current (1.6ZF).
> echo "a{b,c{x,y}}" | sed '
> :a
> s%{\([^,]*\)}%\1%g

IMHO the expressions requires using -E with sed. Also \1 isn't defined
AFAIK i.e., you MUST NOT backslash-quote characters which are not
unsafe e.g., all sorts of parentheses qualify as "unsafe" because they
are part of the syntax.
Still, after removing those backslashes and using -E I don't get the
desired result.