If I do a M-! to run a shell command, usually any output will appear in a new, temporary buffer. But sometimes, seemingly at random, the output will instead be inserted directly into the active buffer. If this happens and I run the same command over again, it normally works as expected the second time.
Is this just me? Why might this be happening, and how do I prevent it?