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=-0.8 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, MAILING_LIST_MULTI,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 7495 invoked from network); 19 Feb 2022 17:27:14 -0000 Received: from minnie.tuhs.org (45.79.103.53) by inbox.vuxu.org with ESMTPUTF8; 19 Feb 2022 17:27:14 -0000 Received: by minnie.tuhs.org (Postfix, from userid 112) id 33B5E945A0; Sun, 20 Feb 2022 03:27:12 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id 44D3693D52; Sun, 20 Feb 2022 03:24:49 +1000 (AEST) Authentication-Results: minnie.tuhs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=ronnatalie.com header.i=@ronnatalie.com header.b="l85jWAW0"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.b="bJ8w6c8N"; dkim-atps=neutral Received: by minnie.tuhs.org (Postfix, from userid 112) id BEC9993D52; Sun, 20 Feb 2022 03:24:46 +1000 (AEST) Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by minnie.tuhs.org (Postfix) with ESMTPS id B8C1393D51 for ; Sun, 20 Feb 2022 03:24:45 +1000 (AEST) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id B8FFD5C02A3; Sat, 19 Feb 2022 12:24:44 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Sat, 19 Feb 2022 12:24:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ronnatalie.com; h=cc:cc:content-transfer-encoding:content-type:date:date:from :from:in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm2; bh=1gMmwxStdNA/Ue lWm9ffx0PuSPpDurEMzpthMzvrZJs=; b=l85jWAW0xA6S7DstEUKY/Egnc50vZT ItEf2Si6If1zl02UN3qp03SEf2oi+iW2476hQPAINCzjpDSgWY0tyoA6D5U8S22f RzcnB5aq/EfA9xmtmSpYaqYLp365d9gPg2X7ew2cM6Fs+W/Ciu8hzh9As7pgJSjD oC9T+o0d+ACzsJCHCJDiY+lhAP2tfZEmpunOJR0X5wOuefkWwY570qu/XRw7jcps aj+zC93WLsbRK2RaBmYssgz5o/ECjlya4OeUj903yMJqyHKLD3OJE8QRmiNxOIqF YTi/kBHl89gOP3hm+2FS/W5XkZRJJaJqFaBq8QpQk/IiW1b/qKctk77Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=1gMmwxStdNA/UelWm9ffx0PuSPpDurEMzpthMzvrZ Js=; b=bJ8w6c8NWNqanjankNcJIIYYhJhYysP75gyMxFznArFpd2Eopdb4dXqy5 Obhj3LXG1DMy0gJpzPyX6CRdXZ5b0BioheI2pzODtBwDmKe8X4XYz9l20FyYrMvS GpbGIKAFxkW4A512H5+W1EZml0uYHeFfzInnNryAYwnXp6cOxaWPKZ+G6GM1B33D IrYUPKikFZbKigdoKlQRHDMYD7t2fyhg9cwTQCMPnM0aM7wjP0NbpH+zK3DFw4nO ClTDBhM+Yi74LaDTeHffsbT4mMNJpbVxqAZ9pCLPw8RKATpp6BUcmjW16MXGX6ip uLuxk6KyiE3wIAio+RBYt8J0A8V2A== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrkedvgddutddtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurheptgfghfggufffkfhfjgfvofesthhqmhdthhdtjeenucfhrhhomheptfhonhcu pfgrthgrlhhivgcuoehrohhnsehrohhnnhgrthgrlhhivgdrtghomheqnecuggftrfgrth htvghrnhepkeetieevgfetheefffettedtheeigffhgfevgeekveelkefgtdekieeuudef gfdunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprh honhesrhhonhhnrghtrghlihgvrdgtohhm X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 19 Feb 2022 12:24:44 -0500 (EST) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: Ron Natalie Mime-Version: 1.0 (1.0) Date: Sat, 19 Feb 2022 12:24:42 -0500 Message-Id: References: In-Reply-To: To: Steve Nickolas X-Mailer: iPhone Mail (19C63) Subject: Re: [TUHS] v7 source code for sh X-BeenThere: tuhs@minnie.tuhs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: The Unix Heritage Society mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: TUHS main list Errors-To: tuhs-bounces@minnie.tuhs.org Sender: "TUHS" This persisted in the shell until S5R2 when someone gratefully undid all tho= se macros. adb was similarly afflicted.=20 > On Feb 19, 2022, at 11:04, Steve Nickolas wrote: >=20 > =EF=BB=BFOn Sat, 19 Feb 2022, Will Senn wrote: >> I have been poring through the v7 source code lately, and came across an o= ddity I would like to know more about. Specifically, in sh. The code for sh i= s c, but it makes *extensive* use of of macros, for example: >=20 > >=20 >> I can read the resultant code through the lens of my experience coding c,= but I'm curious why the macros and how this came about? In v6, the sh sourc= e is straight up c. Is there a story behind it worth knowing? >=20 > Apparently Bourne was heavily into ALGOL, and used those macros to make C i= nto something more familiar. >=20 > At least, that's what I concluded by reading her Wikipedia page as well as= the code. >=20 > -uso.