From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: from minnie.tuhs.org (minnie.tuhs.org [IPv6:2600:3c01:e000:146::1]) by inbox.vuxu.org (Postfix) with ESMTP id C823527A6B for ; Mon, 20 May 2024 15:42:06 +0200 (CEST) Received: from minnie.tuhs.org (localhost [IPv6:::1]) by minnie.tuhs.org (Postfix) with ESMTP id 5394343B10; Mon, 20 May 2024 23:42:01 +1000 (AEST) Received: from arjuna.pair.com (arjuna.pair.com [209.68.5.131]) by minnie.tuhs.org (Postfix) with ESMTPS id 9666643B0F for ; Mon, 20 May 2024 23:41:57 +1000 (AEST) Received: from arjuna.pair.com (localhost [127.0.0.1]) by arjuna.pair.com (Postfix) with ESMTP id A5B578A637 for ; Mon, 20 May 2024 09:41:56 -0400 (EDT) Received: from orac.inputplus.co.uk (57.89.115.87.dyn.plus.net [87.115.89.57]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by arjuna.pair.com (Postfix) with ESMTPSA id 8001B8A597 for ; Mon, 20 May 2024 09:41:56 -0400 (EDT) Received: from orac.inputplus.co.uk (orac.inputplus.co.uk [IPv6:::1]) by orac.inputplus.co.uk (Postfix) with ESMTP id 7A06E1FB2F for ; Mon, 20 May 2024 14:41:55 +0100 (BST) From: Ralph Corderoy To: TUHS main list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit In-reply-to: <502a5f3c-6bd3-4fe8-993c-5351c07e33cd@case.edu> References: <502a5f3c-6bd3-4fe8-993c-5351c07e33cd@case.edu> Date: Mon, 20 May 2024 14:41:55 +0100 Message-Id: <20240520134155.7A06E1FB2F@orac.inputplus.co.uk> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inputplus.co.uk; h=from:to:subject:mime-version:content-type:content-transfer-encoding:in-reply-to:references:date:message-id; s=pair-202402161033; bh=S4AoTW0OtjofOvOzvTqVFFew2NbhsRnMMNv0s+Yd/og=; b=GrG6Uazrxmypupy9kfrBuaK8yo6gZhIeYGiOnoGsgqdEGlOoNKpzL5V1yROWDOaL1YEh9COR56wksohR+dFFOPfQCuUmEWVzk832vpqBv7QdhK9GYcY/Nbnv1XVUBl86/nBlGJ6wZMgMxbgRJEhx0yjEhjjCynJHPxNVCgqd6fDH9e1LjAAC4xxtHNjHoiihWue/ZTEAuvssS0/WUgdZ9FH3TEMRADSN8vzWVbZmM3UtetAkMSY+0nTjaFjj40yZoTyuksOQgJ+z74g9Z6I6M8kKj9RZwq1IzxvWVdmE4rILAGmlJS5GcAj5InHj5RtXClkTuZcgucPVDwRQX2Fy5A== X-Scanned-By: mailmunge 3.11 on 209.68.5.131 Message-ID-Hash: I2BNC5J2Y3GVUCB4GQZF7KKMOJ2GHXDU X-Message-ID-Hash: I2BNC5J2Y3GVUCB4GQZF7KKMOJ2GHXDU X-MailFrom: ralph@inputplus.co.uk 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: A fuzzy awk. List-Id: The Unix Heritage Society mailing list Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Hi Chet, > Doug wrote: > > I'm surprised by nonchalance about bad inputs evoking bad program > > behavior. > > I think the claim is that it's better to stop immediately with an > error on invalid input rather than guess at the user's intent and try > to go on. That aside, having made the decision to patch up the input so more punched cards are consumed, the patch should be bug free. Say it's inserting a semicolon token for pretence. It should have initialised source-file locations just as if it were real. Not an uninitialised pointer to a source filename so a later dereference failed. I can see an avalanche of errors in an earlier gawk caused problems, but each time there would have been a first patch of the input which made a mistake causing the pebble to start rolling. My understanding is that there was potentially a lot of these and rather than fix them it was more productive of the limited time to stop patching the input. Then the code which patched could be deleted, getting rid of the buggy bits along the way? -- Cheers, Ralph.