Richard Neill wrote:
>  b)Consistent with other cases, where bash does give warnings. For example:
> 
> $ X=$((3+078))
> bash: 3+078: value too great for base (error token is "078")
> $ echo $?
> 1

That is not really a comparable case.  The problem there is that the
leading zero specifies an octal constant and the 8 cannot be converted
to octal.  The "3+" part is just a distraction.

  echo $((08))
  bash: 08: value too great for base (error token is "08")

Bob


_______________________________________________
Bug-bash mailing list
Bug-bash@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-bash

Reply via email to