Andrew, > 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/'.
But wait, does not \/HELLO/ set the dot before executing `k'? > This is how "traditional" ed works as well. I don’t think this is a good argument. Because, while compatibility with traditional / historic implementation is fun, I’d prefer a more standard-compliant (POSIX) / intuitive / consistent behavior wherever it makes sense. Best of luck, -- Artyom Bologov https://aartaka.me
