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 :(
- expr ... and `expr ...` return different results on QNX 4.2.... David Morgan
- Re: expr ... and `expr ...` return different results on... akim
- Re: expr ... and `expr ...` return different result... Akim Demaille
- Re: expr ... and `expr ...` return different results on... Pavel Roskin
- FYI: Reading the $? of an assignment (Was: expr ...... Akim Demaille
- Re: expr ... and `expr ...` return different results on... David Morgan
- Re: expr ... and `expr ...` return different results on... Pavel Roskin
- Re: expr ... and `expr ...` return different results on... Akim Demaille
- Re: expr ... and `expr ...` return different results on... Lars J. Aas
- Re: expr ... and `expr ...` return different results on... Paul Eggert
- Re: expr ... and `expr ...` return different results on... Pavel Roskin