zsh interprets a standalone redirect as a `cat` command
I use zsh and yesterday I was testing a program with myprogram 2>/dev/null. In one iteration, I accidentally copied a newline character after the myprogram command and the zsh prompt looked something like $ myprogram 2>/dev/null The program appeared to hang after printing out the expected output.…