[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bug in expr??
From: |
Bob Proulx |
Subject: |
Re: Bug in expr?? |
Date: |
Fri, 3 Nov 2000 10:14:27 -0700 (MST) |
> expr --version
> expr (GNU sh-utils) 2.0i
> Written by Mike Parker.
>
> expr $(01*10)
> 10
>
> expr $(07*10)
> 70
>
> expr $(08*10)
> 08: value too great for base (error token is "08")
>
> expr $(10*10)
> 100
>
> expr $(010*10)
> 80
It looks like it was reading numbers with a leading 0 as octal. I am
using version 2.0.11 and I cannot reproduce your problem. Which leads
me to believe the problem has been fixed in the more recent versions.
However I could not reproduce your test exactly since $(10*10) is not
a valid construct, I assume you were abbreviating. Here are my
results.
expr --version
expr (GNU sh-utils) 2.0.11
expr 01 '*' 10
10
expr 07 '*' 10
70
expr 08 '*' 10
80
expr 10 '*' 10
100
expr 010 '*' 10
100
Jim's latest test release is available at:
ftp://alpha.gnu.org/gnu/fetish/sh-utils-2.0.11.tar.gz
ftp://freefriends.org/gnu/fetish/sh-utils-2.0.11.tar.gz
Bob
- Bug in expr??, Adriano Freitas, 2000/11/03
- Re: Bug in expr??,
Bob Proulx <=