Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: ken@halcyon.com (Ken Pizzini)
Subject: Re: Change in Tru64 Unix expr behavior
Date: 2000/03/24	[thread overview]
Message-ID: <8bec5q$ig7$5@brokaw.wa.com> (raw)
In-Reply-To: 41E4ECD14150E546.2CC1AF804E85030C.57A9FB343B6FF593@lp.airnews.net

On 22 Mar 2000 17:35:35 -0600,
Cameron Laird <claird@starbase.neosoft.com> wrote:
>With
>  OSF1 bread.ecu.net V4.0 1091 alpha
>the result of
>  cmd=12345
>  /usr/bin/expr x$cmd : 'x..\(...\)'
>  cmd=00000
>  /usr/bin/expr x$cmd : 'x..\(...\)'
>is
>  345
>  0
>instead of the
>  345
>  000
>I expect, that I observe on all other Unixes at hand, and that
>I believe was true for older OSF1s.  What's the story?

I don't know what the story is, but I'd guess that that revision
of expr has a bug where it treats the result of a : match as a
numeric value if the match consists soley of digits.  I suggest
that a bug report to the vendor is in order...

		--Ken Pizzini



  reply	other threads:[~2000-03-24  5:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-03-22  5:00 Change in Tru64 Unix expr behavior Cameron Laird
2000-03-24  5:00 ` Ken Pizzini [this message]
2000-03-24  5:00   ` Bob Harris
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox