Package: mksh
Version: 50b-1
Severity: minor

  $ sh -c 'echo $((0777))'
  511
  $ ksh93 -c 'echo $((0777))'
  511
  $ bash -c 'echo $((0777))'
  511
  $ mksh -c 'echo $((0777))'
  777

POSIX says:

  The arithmetic expression shall be processed according to the rules given
  in Arithmetic Precision and Operations, with the following exceptions:

    [...]

    * Only the decimal-constant, octal-constant, and hexadecimal-constant
      constants specified in the ISO C standard, Section 6.4.4.1 are
      required to be recognized as constants.


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to