For background, I previously asked this question.
I am using stderred to turn stderr text in red when diplayed on a terminal. This works nicely on most occasions, more specifically for what appear to be binary executables as opposed to bash scripts.
I realized that stderred
does not appear to work when stderr is referred to directly from a command
called from a terminal.
For example, using stderred
I still do not have red if I use redirection as with the following:
echo "pomme" 1>&2
How is redirection any different than other cases with regards to the stderred
hook?
How can I have red for stderr output if I redirect 1>&2
in a /bin/bash
context, as I do in my bash scripts (Ubuntu 15.10)?
script
program instead – steeldriver Dec 31 '15 at 21:32