[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gawk line continuation
From: |
arnold |
Subject: |
Re: gawk line continuation |
Date: |
Sat, 27 Jun 2020 23:48:05 -0600 |
User-agent: |
Heirloom mailx 12.5 7/5/10 |
Hi Dan.
The problem is that your awk file uses \r\n line endings. Remove all the
\r characters and it'll work with 4.1.1. On Linux 3.1.4 also fails. The
latest gawk gives in and treats \r\n like \n in source files.
> Why haven't I at least tried gawk 5? I get a pre-compiled Windows
> executable from https://www.klabaster.com/freeware.htm
That is not a supported version and I've had bug reports about in the
past that are not bugs in the supported versions.
> If you know some reliable site that has a Windows 5.x binary
> PLEASE let me know and I'll start using it immediately.
As has been documented for well over a decade:
https://sourceforge.net/projects/ezwinports/
provides MinGW-compiled binaries for many GNU programs and libraries,
including gawk. This version is supported by my team and is up to
date. Two other viable options are to use Cygwin, or on Windows 10, WSL,
the Windows Subsystem for Linux, which runs unodified Linux binaries.
There are VERY many bugs fixed, as well as improvements, in the latest
version over what you're running. You should definitely upgrade across
the board.
Thanks,
Arnold