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_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,HTML_MESSAGE,MAILING_LIST_MULTI, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 30078 invoked from network); 26 Feb 2022 23:14:04 -0000 Received: from minnie.tuhs.org (45.79.103.53) by inbox.vuxu.org with ESMTPUTF8; 26 Feb 2022 23:14:04 -0000 Received: by minnie.tuhs.org (Postfix, from userid 112) id D9A7C9CFB9; Sun, 27 Feb 2022 09:14:02 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id D7C4D944BA; Sun, 27 Feb 2022 09:12:55 +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="RkZe0Dbt"; dkim-atps=neutral Received: by minnie.tuhs.org (Postfix, from userid 112) id AA1FC944BA; Sun, 27 Feb 2022 09:12:52 +1000 (AEST) Received: from mail-pj1-f46.google.com (mail-pj1-f46.google.com [209.85.216.46]) by minnie.tuhs.org (Postfix) with ESMTPS id F1A1C93D6E for ; Sun, 27 Feb 2022 09:12:50 +1000 (AEST) Received: by mail-pj1-f46.google.com with SMTP id em10-20020a17090b014a00b001bc3071f921so11525038pjb.5 for ; Sat, 26 Feb 2022 15:12:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=USFTxUDmt2U8MDt12aAMWV6D6WoXqIFuW4UiFmUdKJw=; b=RkZe0DbtIx+29kLieP0vvqFOUU/yL9dVGhCkESDzSxwK7H5fT5ua0+prF9RV4HnqfS WvtfTaI3kw9CL4VrpEDWchJwXTASbGGPuERuPFdyvHeuAccMjVBm4fQHZXQ5W/D5d4yW VejdiiRIPVnbNprqxIX2RRN/9bPK3AVtfbIziN4h7rXuC6iiQG5UPLEQnM2Of4EV8e9u En0b0bjbAobPy/9Ng8SLNsOj0AOUXxhzCSkxNJtcCYraEv17bd48YdrhAR6e0nWg87Og nExRXU94IUHT9DAe47ez+JHyxVAbctafI0v5hjfCS7YSiRHsrvhWaakdCgmTmObKCwwt rMfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=USFTxUDmt2U8MDt12aAMWV6D6WoXqIFuW4UiFmUdKJw=; b=kMLrkOkFa/EZppyRrqrfsMMucfEfaECb+H3X0F+XVw4P20ZbjA5xO2VjtkktS7rPsi 8LSw/twZKOFJqdMZAgtdwhkkiMQlZBbFB1xO0jfQx4LfZkjF0pPa2hCdqq2OuY2Q6KYR Mhbp6wYy4DqcEoU7n15OtaAFJ9t2tTiNtR3GLlVWequZPIZ9FdKaFL3Q/GUYln6hvWvs Yv7MLk8XjQwIGMM+icnY5JQ0gkHKeDpSmqIyTn2SkOyNwQ8crGHROmI1EwvxXJOxU2IN OWUp30wxAHeBmuypqOIAUMBlmfVkcIh/PqS/BSj3TBnXb571oTxmKdwuhcCnUHzi8YA8 2Ibw== X-Gm-Message-State: AOAM530oU/nGrneFrH1E9oAlE50zZRcYjRW+OIE9Pk9NW2A2t0vDnmSk 4Q7xAbUXmoO9k3wFp3S/Mp+fcOJk1QhKerV86/A= X-Google-Smtp-Source: ABdhPJwiXH59TDm7nHeXDWIbbFls9LTyZfumyTyEtSmXICjKY3xF/z03gGAUcCw9UVenGJ8vYOMan4INdzDkB9VvgQE= X-Received: by 2002:a17:90a:8d82:b0:1bc:6b54:e798 with SMTP id d2-20020a17090a8d8200b001bc6b54e798mr9759074pjo.77.1645917170371; Sat, 26 Feb 2022 15:12:50 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Rob Pike Date: Sun, 27 Feb 2022 10:12:39 +1100 Message-ID: To: Clem Cole Content-Type: multipart/alternative; boundary="0000000000004512a105d8f3f479" Subject: Re: [TUHS] run commands at login in v6 and stty 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" --0000000000004512a105d8f3f479 Content-Type: text/plain; charset="UTF-8" Cpp was definitely in v6, and I'm pretty sure it was in earlier editions. The first pass of the C compiler would invoke it if the first byte of the source file was a '#'. However, the early version only did #define and #include. It was rewritten for v7, I believe, introducing the catastrophe of #ifdef, while the existential horror of #if was later still, foisted on us by someone not in Research. -rob On Sun, Feb 27, 2022 at 9:53 AM Clem Cole wrote: > > Some thoughts .. > > 1.) the precursor to the csh is the newshell in {1}BSD. It's Joy's hack > to the Thompson shell and you might find it more usable. > 2.) PWB 1.0 is based on a V6 kernel and has the Mashey Shell, which is in > C and predates Bourne's It might also be easier for you to use. > 3.) srb wrote his shell during the transition between V6, TS and V7. At > least one version ran on the V6++ system we had at CMU, but of course as > pointed out, it is written in Bourne-Gol. And I'm pretty sure his CPP > definitions will need at least a gen2 /lib/cpp implementation*** However, > Steve was also doing it at the time when the compiler was being updated. > FWIW: We also had the 'Typesetter C' running on our V6 system in those > days. So my >>guess<< is that v6 + Typesetter C - will compile the V7 > shell. > > Clem > > > > *** Rob or Steve Johnson - maybe remembers when cpp first appeared. I > don't remember if it was part of V5 or not - those bits have faded from my > brain. What I do remember is there were a couple of different cpp's early > on. The first one was pretty crude by today's standards, albeit it was a > cool idea and it was the one thing I really liked about C over BLISS early > on [BLISS had Macros, which was cool aalso, but cpp could do things Bliss > could not]. > --0000000000004512a105d8f3f479 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Cpp was definitely in v6, and I'm pretty sure it was i= n earlier editions. The first pass of the C compiler would invoke it if the= first byte of the source file was a '#'. However, the early versio= n only did #define and #include. It was rewritten for v7, I believe, introd= ucing the catastrophe of #ifdef, while the existential horror of #if was la= ter still, foisted on us by someone not in Research.

-ro= b


<= div dir=3D"ltr" class=3D"gmail_attr">On Sun, Feb 27, 2022 at 9:53 AM Clem C= ole <clemc@ccc.com> wrote:
<= br>
Some thoughts ..

1.) the precursor to the = csh is the newshell in {1}BSD.=C2=A0 It's Joy's hack to the Thompso= n shell and you might find it more usable.
2.) PWB 1.0 is based on = a V6 kernel and has the Mashey Shell, which is in C and predates Bourne'= ;s =C2=A0It might also be easier for you to use.
3.) srb wrote his = shell during the transition between V6, TS and V7. =C2=A0 At least one vers= ion ran on the V6++ system we had at CMU, but of course as pointed out, it = is written in Bourne-Gol. And I'm pretty=C2=A0sure his=C2=A0CPP definit= ions will need at least a gen2 /lib/cpp implementation*** =C2=A0However, St= eve was also doing it at the time when the compiler was being updated.=C2= =A0 FWIW: We also had the 'Typesetter C' running on our V6 system i= n those days.=C2=A0 So my >>guess<< is that v6=C2=A0+ Typesette= r C - will compile the V7 shell.

Clem



*** Rob or Steve Johnson - maybe remembers = when cpp first appeared.=C2=A0 I don't remember if it was part of V5 or= not - those bits have faded from my brain.=C2=A0 What I do remember is the= re were a couple of different cpp's early on.=C2=A0 The first one was p= retty crude by today's standards, albeit it was a cool idea and it was = the one thing I really liked about C over BLISS early on [BLISS had Macros,= which was cool aalso, but cpp could=C2=A0do things Bliss could not].
=
--0000000000004512a105d8f3f479--