[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: i-link-no test triggers HP-UX shell tracing (set -x) problem
From: |
Jim Meyering |
Subject: |
Re: i-link-no test triggers HP-UX shell tracing (set -x) problem |
Date: |
Wed, 28 Jun 2006 09:02:04 +0200 |
address@hidden (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.