[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: bin/52687: can't suppress warnings from /bin/sh
The following reply was made to PR bin/52687; it has been noted by GNATS.
From: Robert Elz <kre%munnari.OZ.AU@localhost>
Subject: Re: bin/52687: can't suppress warnings from /bin/sh
Date: Wed, 01 Nov 2017 20:48:07 +0700
Date: Wed, 1 Nov 2017 13:05:01 +0000 (UTC)
From: christos%zoulas.com@localhost (Christos Zoulas)
| This is by design;
| nonexistent 2> /dev/null
| Means redirect file descriptor 2 of the child process.
That may be, but the NetBSD sh is about the only one (well, is the only one
I can find) that behaves this way.
I am not sure that being different, just for the sake of it, is really
a good idea.
And with ...
| $ exec 3>&2 2> /dev/null
| exec 2>&3
You'd also want (probably) 3>&- at the end of that last line.
Main Index |
Thread Index |