I've got a problem and I am not sure whether this is a bug or if this is supposed to happen when using $ for addressing lines. Basically, I have the following command:
sed -e '$s/test/tset/g'
Usually, I would expect it to run like this:
blahblah blahblah <-- Cursor is here now
Meaning: I type in something and press Enter one time, and the result is shown in the next line, However, instead I get the following:
blahblah blahblah <-- Cursor is here now.
So, basically the $-symbol seems to somehow cause sed to set the cursor to an empty line and only after I press enter again, it actually shows the result (means: I have to press Enter two times). Is there any way to prevent that or is this possibly a bug? In my more complex patterns this is actually messing up a lot of stuff.