[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Gawk division errors on macOS
From: |
arnold |
Subject: |
Re: Gawk division errors on macOS |
Date: |
Sun, 23 Oct 2022 03:42:25 -0600 |
User-agent: |
Heirloom mailx 12.5 7/5/10 |
Hi.
Thanks for the report. This occurs also on Linux. A patch is attached.
I will push this to Git soon.
Arnold
Ben Hoyt <benhoyt@gmail.com> wrote:
> Hi Arnold,
>
> I'm currently getting a division by zero error on macOS with the simple
> program 'BEGIN { print "2"/"3" }'. (See detailed version and output below.)
> Do you think this is the same issue you fixed here by disabling PMA on
> macOS M1?
>
> https://git.savannah.gnu.org/cgit/gawk.git/commit/?id=53d97efad03453b0fff5a941170db6b7abdb2083
>
> Cheers,
> Ben.
>
> + gawk --version
> GNU Awk 5.2.0, API 3.2, PMA Avon 7, (GNU MPFR 4.1.0-p13, GNU MP 6.2.1)
> Copyright (C) 1989, 1991-2022 Free Software Foundation.
> + gawk 'BEGIN { print 2/3 }'
> This program is free software; you can redistribute it and/or modify
> it under the terms of the GNU General Public License as published by
> the Free Software Foundation; either version 3 of the License, or
> (at your option) any later version.
> This program is distributed in the hope that it will be useful,
> but WITHOUT ANY WARRANTY; without even the implied warranty of
> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> GNU General Public License for more details.
> You should have received a copy of the GNU General Public License
> along with this program. If not, see http://www.gnu.org/licenses/.
> 0.666667
> + gawk 'BEGIN { print "2"/"3" }'
> gawk: cmd. line:1: error: division by zero attempted
> Error: Process completed with exit code 1.
div.diff
Description: Text document
- Re: Gawk division errors on macOS,
arnold <=