From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,ec7332beaf6fe3d8 X-Google-Attributes: gidfee84,public X-Google-Thread: 1012a6,ec7332beaf6fe3d8 X-Google-Attributes: gid1012a6,public From: ken@halcyon.com (Ken Pizzini) Subject: Re: Change in Tru64 Unix expr behavior Date: 2000/03/24 Message-ID: <8bec5q$ig7$5@brokaw.wa.com>#1/1 X-Deja-AN: 601539828 References: <41E4ECD14150E546.2CC1AF804E85030C.57A9FB343B6FF593@lp.airnews.net> Mail-Copies-To: nobody X-Trace: brokaw.wa.com 953857018 18951 206.63.63.10 (24 Mar 2000 00:16:58 GMT) Organization: _ User-Agent: slrn/0.9.5.3 (UNIX) Reply-To: ken@halcyon.com NNTP-Posting-Date: 24 Mar 2000 00:16:58 GMT Newsgroups: comp.unix.shell,comp.unix.osf.osf1 On 22 Mar 2000 17:35:35 -0600, Cameron Laird 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