[#949] Fix missing NOTADBFILE error in MUPIP DUMPFHEAD output when stderr and stdout are both directed to a file
Background
-
be116db8 used
/proc/self/fd/2
in the error trap which caused the%DUMPFHEAD-F-NOTADBFILE
message line to be swallowed if the stdout and stderr of themupip dumpfhead
command was redirected to a file. See !1291 (comment 1211287436) for more details.
Issue
- This is a specific case of a general issue. See #965 for more details.
Fix
-
The
mupip dumpfhead
case can be easily handled by using$principal
instead of/proc/self/fd/2
insr_port/dumpfhead.mpt
. And that is exactly what is done in this commit. -
This fixes the newly introduced
/proc/self/fd/2
usage in be116db8.
Notes
- The other longstanding usages of
/proc/self/fd/2
will be fixed in a later release/commit as part of #965.
Edited by Narayanan Iyer