I have a command: mywritercmd -f /tmp/test 2>&1 > log.txt
I run in a bash terminal, the command returns error: could not open output file "/tmp/test": Permission denied
Nevertheless, this error message isn't written in the log.txt file, it stays empty...
Why?
I'd have guessed this message should go to stderr and then in the file but somehow it isn't.