[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Arithmetic evaluation of negative numbers with base prefix
From: |
Greg Wooledge |
Subject: |
Re: Arithmetic evaluation of negative numbers with base prefix |
Date: |
Tue, 18 Jun 2019 11:20:13 -0400 |
User-agent: |
Mutt/1.10.1 (2018-07-13) |
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.
- Arithmetic evaluation of negative numbers with base prefix, Jeremy Townshend, 2019/06/14
- Re: Arithmetic evaluation of negative numbers with base prefix, Chet Ramey, 2019/06/14
- Re: Arithmetic evaluation of negative numbers with base prefix, Jeremy Townshend, 2019/06/17
- Re: Arithmetic evaluation of negative numbers with base prefix, Greg Wooledge, 2019/06/17
- Re: Arithmetic evaluation of negative numbers with base prefix, Ilkka Virta, 2019/06/18
- Re: Arithmetic evaluation of negative numbers with base prefix, Chet Ramey, 2019/06/18
- Re: Arithmetic evaluation of negative numbers with base prefix,
Greg Wooledge <=
- Re: Arithmetic evaluation of negative numbers with base prefix, Ilkka Virta, 2019/06/18
- Re: Arithmetic evaluation of negative numbers with base prefix, Chet Ramey, 2019/06/19
- Re: Arithmetic evaluation of negative numbers with base prefix, Chet Ramey, 2019/06/19
- Re: Arithmetic evaluation of negative numbers with base prefix, Chet Ramey, 2019/06/19
Re: Arithmetic evaluation of negative numbers with base prefix, Ilkka Virta, 2019/06/14