From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=0.5 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE,RDNS_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 Received: (qmail 6585 invoked from network); 15 Mar 2020 22:02:37 -0000 Received-SPF: pass (minnie.tuhs.org: domain of minnie.tuhs.org designates 45.79.103.53 as permitted sender) receiver=inbox.vuxu.org; client-ip=45.79.103.53 envelope-from= Received: from unknown (HELO minnie.tuhs.org) (45.79.103.53) by inbox.vuxu.org with ESMTP; 15 Mar 2020 22:02:37 -0000 Received: by minnie.tuhs.org (Postfix, from userid 112) id 729F39D75A; Mon, 16 Mar 2020 08:02:29 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id 849429D734; Mon, 16 Mar 2020 08:02:01 +1000 (AEST) Authentication-Results: minnie.tuhs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="HAuX/j6W"; dkim-atps=neutral Received: by minnie.tuhs.org (Postfix, from userid 112) id 9FA3E9D734; Mon, 16 Mar 2020 08:01:59 +1000 (AEST) Received: from mail-vk1-f179.google.com (mail-vk1-f179.google.com [209.85.221.179]) by minnie.tuhs.org (Postfix) with ESMTPS id 32F249D732 for ; Mon, 16 Mar 2020 08:01:59 +1000 (AEST) Received: by mail-vk1-f179.google.com with SMTP id w67so4323543vkf.1 for ; Sun, 15 Mar 2020 15:01:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=vHrHvPBoKZdo+dJ4JJFXPZWqAV9GtpDJqRAnxwt5X0c=; b=HAuX/j6WzKgA0O8kLPgnpatNYj4GDFQBoXaZV7RSTCfeq0iUehQPazX6039BKHy3xx pD/qSvbkpnm7CSWWfkos4b/UflmMiFCzNZtf9el2bY++hIYqToE3kGiJSrv212zV8NVZ BCZ/hp6J3w834EXQ4mLRn5u7P5/9hBt7okMxFE4Qj6ZWW7DcC91vqr1y47sONFouG1TJ fDz00/PQg3OF6o9XzPlgL1Tm4UQWiMLLryWLITG+dltGTKQj2rNpDSW1EqP3q4sDXXWc g//pEazdpELnFUz7sOeoJplfZ0h24dyZ8YIFhwHji6l9xgdbVe+Hc1vhfxGTQ4oAXLPt xDOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=vHrHvPBoKZdo+dJ4JJFXPZWqAV9GtpDJqRAnxwt5X0c=; b=czFPN4VWK0eHKmyqrCwpPvSNyptQjlH/X0FgQ4kgm8BssvgS5MItRrknKcomsTAfDz oi61DKLCwNr7Roao7veoT/OjsOUvUHW759HIuktaa3fGR447x/KewlybQARlgZjO1NL3 SboNhkwSjjOzukKBG1yot0b2xqRCnNdftr83K4/BtKp83tAexutq93KGpyVfjoTt3O5F 2cY+7NHf95Aylt56hOgiYaMfwSEqP2OMHj6CtXBgA+eruRdl93+L0WZwEI9eNZ/dzwZc f9QRULFtitTQ9FGLgulkhQUli6UdsvPTB56Dt/BPytnkydB4AhlPTPiTxkNq71JBUwiq HVyA== X-Gm-Message-State: ANhLgQ3TlFWOu4b7aiJVrgliqK4sOCeYLZqVdnEz42/xsjTbXS7Qrief 1lHa3yO8t0hp36TE+7meFRfgxb/MsE9Cj6rVjO8= X-Google-Smtp-Source: ADFU+vspl0BwHXkr4tduCYf+wHVOSu0NGt/KTnzmjaB+phsXWHKat8el8wGkOgN9MlAJAZYGVuPwa2pOC5qi3xj2Nlw= X-Received: by 2002:a1f:640c:: with SMTP id y12mr10538128vkb.73.1584309718021; Sun, 15 Mar 2020 15:01:58 -0700 (PDT) MIME-Version: 1.0 References: <202003132331.02DNVaxN061501@tahoe.cs.Dartmouth.EDU> <0538034f-98cb-1063-b94d-e7b77b548d6d@gmail.com> In-Reply-To: From: Rob Pike Date: Mon, 16 Mar 2020 09:01:46 +1100 Message-ID: To: Clem Cole Content-Type: text/plain; charset="UTF-8" Subject: Re: [TUHS] The most surprising Unix programs 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" Ha! Someone on hacker news, that fount of profundity, posted the C code for typo and said that it would be a simple matter to update to modern Unix. I tried quite hard to do that years ago, and failed, which is why I wrote my own version in Go. The original is just barely above assembler and deeply dependent on CPU, operating system, compiler and even linker. Hell, evidence shows it couldn't even be ported to v7. It's hard for younger programmers to appreciate how different things once were. -rob