autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: expr ... and `expr ...` return different results on QNX 4.2.5


From: akim
Subject: Re: expr ... and `expr ...` return different results on QNX 4.2.5
Date: Wed, 29 Nov 2000 20:33:53 +0100
User-agent: Mutt/1.2.5i

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

[Prev in Thread] Current Thread [Next in Thread]