From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 24436 invoked from network); 11 Sep 2023 13:53:16 -0000 Received: from minnie.tuhs.org (50.116.15.146) by inbox.vuxu.org with ESMTPUTF8; 11 Sep 2023 13:53:16 -0000 Received: from minnie.tuhs.org (localhost [IPv6:::1]) by minnie.tuhs.org (Postfix) with ESMTP id 5269140F71; Mon, 11 Sep 2023 23:53:08 +1000 (AEST) Received: from vmail1.sentex.ca (vmail1.sentex.ca [64.7.153.19]) by minnie.tuhs.org (Postfix) with ESMTPS id 27B8A40BD9 for ; Mon, 11 Sep 2023 23:52:59 +1000 (AEST) Received: (Haraka outbound); Mon, 11 Sep 2023 09:52:56 -0400 Authentication-Results: vmail1.sentex.ca; auth=pass (plain) Received: from [10.0.1.25] (198.27.14-65.ip.mltn.standardbroadband.ca [198.27.14.65]) by vmail1.sentex.ca (Haraka/2.8.25) with ESMTPSA id 116B82C0-C455-491C-AA1B-EEB405A15C37.1 envelope-from (authenticated bits=0) (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256); Mon, 11 Sep 2023 09:52:56 -0400 Message-ID: <758df571-6151-d5c8-642e-b3fcc83aa4f2@riddermarkfarm.ca> Date: Mon, 11 Sep 2023 09:52:55 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 To: tuhs@tuhs.org References: <1qf3zQ-7oK-00@marmaro.de> <202309101941.38AJfYOc019233@freefriends.org> <1qfZxY-3Sk-00@marmaro.de> Content-Language: en-CA From: Stuff Received In-Reply-To: <1qfZxY-3Sk-00@marmaro.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Haraka-GeoIP: NA, CA, ON, Georgetown, 28km Message-ID-Hash: U6HWOFMQUTLN7YMUIEDFDAO52YNDWNKX X-Message-ID-Hash: U6HWOFMQUTLN7YMUIEDFDAO52YNDWNKX X-MailFrom: stuff@riddermarkfarm.ca X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.6b1 Precedence: list Subject: [TUHS] Re: The AWK Programming Language, 2nd Ed.: What's new? List-Id: The Unix Heritage Society mailing list Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: On 2023-09-11 01:59, markus schnalke wrote: > Hoi, > > thanks a lot for your helpful answer. This was the kind of answer > I was wishing to get. More tidbits here: https://www.awk.dev/ S. > It's hard to resist getting the book, after your favorable words. > ;-) > > > meillo > > > > [2023-09-10 21:41] arnold@skeeve.com >> >> Hi. >> >> markus schnalke wrote: >> >>> Hoi, >>> >>> I just discovered that one of my favorite computer books about my >>> best liked programming language (besides C) releases in a second >>> edition. Does anyone know what the differences of 1st and 2nd >>> edition are? >>> >>> As the original book is almost perfect, the only rework and >>> extension direction I can think of is towards different >>> implementations like gawk, mawk, portability and such things. >>> >>> Does anyone know more about it? Maybe some inside information? ;-) >>> >>> meillo >> >> Inside information? As it happens, yes, I do have some. :-) >> (I was a reviewer.) >> >> [In the below, "awk" means Brian Kernighan's awk.] >> >> In the 36 (!) years since the first edition was published, awk >> has undergone, shall we say, a large number of small changes. These >> are listed in the FIXES file currently in the master branch of >> https://github.com/onetrueawk/awk. >> >> In addition, Brian Kernighan decided to add support for UTF-8 input, >> which is what awk now expects, and support for CSV input files when >> invoked with the --csv option. Furthermore, there is a new \u escape >> sequence which must be followed by 1-8 hexadecimal digits for specifying >> Unicode code points. >> >> The book itself has been carefully revised. The large second chapter >> which was a reference to the full language was moved to an appendix. >> Many of the example programs from the first edition were retained >> and updated, but there is also quite of lot of pleasing new material. >> >> There is mention of, and occasional comparison with, gawk, mawk and >> Ben Hoyt's GoAwk, but by and large the focus is on the authors' version. >> >> The new code is currently in the "csv" branch of the above Github >> repo. The maintainer is in the process of tidying up the repo (dealing >> with issues and pull requests) and will merge the csv branch into >> master sometime in the very near future. >> >> I'm told that the printed books with get to the publisher's warehouse >> towards the end of September. The book is available now on O'Reilly's >> Safari learning site (safari.oreilly.com) for anyone who has a >> subscription. >> >> Matching code (--csv and \u) are in gawk's master branch now. I will >> make a release this fall, after the new code has moved into master >> in BWK's awk. >> >> I heartily recommend the book; it is totally up to Brian Kernighan's >> usual very high standard. >> >> Enjoy, >> >> Arnold >>