Path: csiph.com!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail From: Greg Wooledge Newsgroups: gnu.bash.bug Subject: Re: Arithmetic evaluation of negative numbers with base prefix Date: Tue, 18 Jun 2019 11:20:13 -0400 Lines: 19 Approved: bug-bash@gnu.org Message-ID: References: <20190614141947.GB27242@tower> <20190617133026.GC27242@tower> <20190617154708.GG2072@eeg.ccf.org> <20190618152013.GM2072@eeg.ccf.org> NNTP-Posting-Host: lists.gnu.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: usenet.stanford.edu 1560871241 30596 209.51.188.17 (18 Jun 2019 15:20:41 GMT) X-Complaints-To: action@cs.stanford.edu To: bug-bash@gnu.org Envelope-to: bug-bash@gnu.org Mail-Followup-To: bug-bash@gnu.org Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 139.137.100.1 X-BeenThere: bug-bash@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Bug reports for the GNU Bourne Again SHell List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: <20190618152013.GM2072@eeg.ccf.org> X-Mailman-Original-References: <20190614141947.GB27242@tower> <20190617133026.GC27242@tower> <20190617154708.GG2072@eeg.ccf.org> Xref: csiph.com gnu.bash.bug:15056 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.