Andreas Kusalananda Kähäri <andreas.kah...@icm.uu.se> wrote: > > g/a/\ > > d > > The command that you give is, according to the manual, equivalent to > > g/a/p\ > d > > (since "A newline alone in command-list is equivalent to a p command"). > > So, it prints all lines matching /a/ and then deletes them.
I expect print and delete of each matching line. OpenBSD4.8 ed does not do it, it behaves strange. Was the problem perhaps fixed later? Rodrigo.