> 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-sh-utils mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-sh-utils

Reply via email to