On Wednesday 08 September 2010, Eric Blake wrote:
> On 09/08/2010 07:20 AM, Jim Meyering wrote:
> > Subject: [PATCH] init.sh: disqualify shells for which set -x
> > corrupts stderr
> 
> I'm a little worried that this patch might exclude all shells on a
> given platform.  For example, on IRIX 5.3:
> 
> $ /bin/sh -c '(exec 3>&1; set -x; P=1 true 2>&3) 2>/dev/null'
> P=1
> $ /bin/ksh -c '(exec 3>&1; set -x; P=1 true 2>&3) 2>/dev/null'
> + P=1
> $ bash -c '(exec 3>&1; set -x; P=1 true 2>&3) 2>/dev/null'
> $
JFTR, with Zsh 4.3 on Debian:
  $ zsh -c '(exec 3>&1; set -x; P=1 true 2>&3) 2>/dev/null'
  +zsh:1> P=1 +zsh:1> true
The problem doesn't appear with earlier versions of Zsh (tested: 
4.0.1, 4.2.0, 3.0.8).

Regards,
   Stefano

Reply via email to