* Change in Tru64 Unix expr behavior
@ 2000-03-22 5:00 Cameron Laird
2000-03-24 5:00 ` Ken Pizzini
0 siblings, 1 reply; 3+ messages in thread
From: Cameron Laird @ 2000-03-22 5:00 UTC (permalink / raw)
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?
--
Cameron Laird <claird@NeoSoft.com>
Business: http://www.Phaseit.net
Personal: http://starbase.neosoft.com/~claird/home.html
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Change in Tru64 Unix expr behavior
2000-03-22 5:00 Change in Tru64 Unix expr behavior Cameron Laird
@ 2000-03-24 5:00 ` Ken Pizzini
2000-03-24 5:00 ` Bob Harris
0 siblings, 1 reply; 3+ messages in thread
From: Ken Pizzini @ 2000-03-24 5:00 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2000-03-24 5:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-03-22 5:00 Change in Tru64 Unix expr behavior Cameron Laird
2000-03-24 5:00 ` Ken Pizzini
2000-03-24 5:00 ` Bob Harris
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox