Hi y’all,

There was this confusing behavior of `k' command I discovered today:
putting it after an address does not mark the right line, while putting
it on a line of its own does. Tested on this input file:

------------------------------------------------------------
START

HELLO

END
------------------------------------------------------------

And these two scripts:

------------------------------------------------------------
/HELLO/kan
------------------------------------------------------------
/HELLO/
kan
------------------------------------------------------------

The first script prints

18
5       END

while the second prints

18
HELLO
3       HELLO

Is there some behavior prompting this? Am I missing something?

Best of luck,
-- 
Artyom Bologov
https://aartaka.me

Reply via email to