Package: mksh
Version: 46-2
Severity: normal

Unlike ksh (and sh), mksh doesn't support octal in arithmetic
expressions:

xvii% sh -c 'echo $((010))'
8
xvii% ksh93 -c 'echo $((010))'
8
xvii% mksh -c 'echo $((010))'
10

I hate this feature because of the ambiguity with decimal, but
mksh intends to behave like ksh93. So, it should support octal
in arithmetic expressions.

Note: it is OK for hex support:

xvii% ksh93 -c 'echo $((0x10))'
16
xvii% mksh -c 'echo $((0x10))' 
16

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 
'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.11-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=POSIX, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages mksh depends on:
ii  libc6    2.17-97
ii  libgcc1  1:4.8.2-10

mksh recommends no packages.

Versions of packages mksh suggests:
ii  ed  1.9-2

-- no debconf information


-- 
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