[EMAIL PROTECTED] (Bob Proulx) wrote: > The HP-UX /bin/sh using command tracing (set -x) and stderr > redirection behaves badly when stderr is redirected before stdout. I > tested on HP-UX 10.20, 11.0, 11.11, and 11.23 and all had this > problem. Here is an example: > > $ /bin/sh -xc ': 2>/tmp/err >/dev/null' > + : > + 2> /tmp/err $ ...hanging prompt without previous newline... > $ cat /tmp/err > 1> /tmp/out > > This causes the i-link-no test to always fail on HP-UX when run with > VERBOSE=yes which sets 'set -x'. This test passes otherwise. ... > > * Work around HP-UX /bin/sh tracing problem (set -x when > VERBOSE=yes) when stderr is redirected before stdout causing > shell tracing of the stdout redirection to be written to the > stderr file. Avoid problem and test failure on HP-UX by > redirecting stderr last.
Hi Bob, Thanks for tracking that down. I've applied both of your patches. _______________________________________________ Bug-coreutils mailing list Bug-coreutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-coreutils