Subject: Re: bin/23853: sed's "regular expressions" suck
To: None <vax@carolina.rr.com>
From: Christian Biere <christianbiere@gmx.de>
List: netbsd-bugs
Date: 12/23/2003 23:08:39
[ Please, don't set Reply-To to invalid addresses! ]
vax@carolina.rr.com wrote:
> >Synopsis: sed's "regular expressions" suck
> sed's "regular expressions" are downright embarassing.
> There are no alternations "|", no "+", no '?', not much of anything.
I think you missed the parameter -E.
> >How-To-Repeat:
[examples]
They'd work, if you used -E.
> >Fix:
> Incidentally, I found this while trying to port Linux's "killall", from
> their psmisc SRPM.
We have pkill just like Solaris.
> Their sed handles regexps just fine.
"Their" /bin/sh is bash. So what? If there's an open standard which
says that sed should use regular expressions even with no parameters,
that's an argument.
--
Christian