Hello, Douglas McIlroy wrote:
observed in versions 1.18 and 1.20.1
Thank you very much for reporting this.When I implemented case-insensitive REs in 1.18 I made a stupid mistake (fail to skip the newline when the last delimiter is omitted) that resulted in the defect you reported.
I'll release a fixed version of ed soon. Best regards, Antonio.