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