I just noticed that bash interactive shell by default writes the prompt and echoes anything you type to file descriptor 2 (stderr). This can be verified by running bash inside strace.What is the reason for this? Why does it not write these things to stdout?
Why does bash interactive shell by default write its prompt and echoes its interactive input to stderr?
bash;prompt;stderr