Hi, how could I know if $stderr has been redirected to /dev/null?
This is, imagine a program does:
And later I want to check if it’s redirected to /dev/null or not.
I’ve found a method which could work:
So I could parse the resulting string. However it doesn’t seem a very
approach. Is there any there any other more ellegant way?
Thanks a lot.