On 2026-03-29 23:33,  Artyom Bologov wrote:
There was this confusing behavior of `k' command I discovered today:

The `k' command does not set dot, so `/HELLO/kan' enumerates the line
from which the command is executed, not the line that is marked. When
ed opens a file, dot is set to the last line in that file, which is
what the `n' command prints after marking the line matching `/HELLO/'.

This is how "traditional" ed works as well.

Reply via email to