Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #15056 > unrolled thread

Re: Arithmetic evaluation of negative numbers with base prefix

Started byGreg Wooledge <wooledg@eeg.ccf.org>
First post2019-06-18 11:20 -0400
Last post2019-06-18 11:20 -0400
Articles 1 — 1 participant

Back to article view | Back to gnu.bash.bug

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Arithmetic evaluation of negative numbers with base prefix Greg Wooledge <wooledg@eeg.ccf.org> - 2019-06-18 11:20 -0400

#15056 — Re: Arithmetic evaluation of negative numbers with base prefix

FromGreg Wooledge <wooledg@eeg.ccf.org>
Date2019-06-18 11:20 -0400
SubjectRe: Arithmetic evaluation of negative numbers with base prefix
Message-ID<mailman.350.1560871241.10840.bug-bash@gnu.org>
On Tue, Jun 18, 2019 at 10:27:48AM -0400, Chet Ramey wrote:
> $ ksh93 -c 'echo ${.sh.version}'
> Version ABIJM 93v- 2014-09-29
> $ ksh93 -c 'echo $(( 10# ))'
> ksh93:  10# : arithmetic syntax error

I guess most Linux distributions are not shipping the 2014 version of
ksh93 yet...?

wooledg:~$ ksh -c 'echo $(( 10# ))'
0
wooledg:~$ dpkg -l ksh | tail -1
ii  ksh            93u+20120801-3.4 amd64        Real, AT&T version of the Korn shell
wooledg:~$ ksh -c 'echo ${.sh.version}'
Version AJM 93u+ 2012-08-01

Seems kinda weird to continue calling it "ksh93" if it's being changed,
but I don't make the decisions.

[toc] | [standalone]


Back to top | Article view | gnu.bash.bug


csiph-web