You're right, as the result of the search is an address. But in that case, 1,/pattern/ applies the function d to the first line, as 1,
evaluates to 1,1. So it points out to be a bug in sed (even in GNU sed). Am Tue, 13 Nov 2018 15:32:12 -0500 schrieb Dave MacFarlane : > "1/test$/d" doesn't match the pattern "[address [, address] ] function > [argument ...]". There's a comma that separates the two addresses in > the documentation. > On Tue, Nov 13, 2018 at 3:28 PM Eckard Brauer > wrote: [...] > [...] > [...] > > > -- :)