On Wed, Nov 29, 2000 at 11:23:19AM -0800, David Morgan wrote:
> Hi folks,
> 
> Thanks for the changes by including as_expr there is a problem with the test,
> and/or another bug in QNX (I suspect).
> 
> The code:
> 
> expr a : '\(a\)'
> echo $?
> b=`expr a : '\(a\)'`
> echo $b,$?
> 
> Gives:
> 
> a
> 1
> a,0

Sorry, I was already inefficient I guess.  It's the same bug as ASh's
one reported by Pavel.

I think you can safely change the as_expr test into

if expr a : '\(a\)' >dev/null; then
  as_expr=expr
ekse
  as_expr=false
fi

I made the test more complex than needed :( 

Reply via email to