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 autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 27491 invoked from network); 5 Jan 2023 21:13:21 -0000 Received: from minnie.tuhs.org (50.116.15.146) by inbox.vuxu.org with ESMTPUTF8; 5 Jan 2023 21:13:21 -0000 Received: from minnie.tuhs.org (localhost [IPv6:::1]) by minnie.tuhs.org (Postfix) with ESMTP id 341F9423C8; Fri, 6 Jan 2023 07:12:58 +1000 (AEST) Received: from mail-ua1-f52.google.com (mail-ua1-f52.google.com [209.85.222.52]) by minnie.tuhs.org (Postfix) with ESMTPS id 8A7C8423C7 for ; Fri, 6 Jan 2023 07:12:54 +1000 (AEST) Received: by mail-ua1-f52.google.com with SMTP id d14so7107332uak.12 for ; Thu, 05 Jan 2023 13:12:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=RFJF491NDAAIJE0YfJsKYmQ2IZRWZARbco2Y+A3P74g=; b=aUz4jqiTCQv71RWhKh5fBWDuIlB6MnHWVOyUDaFrkonaRX8faokKZRnCETRK8S4YgY s9xmLvAmBsJqi+ghKjhNmjrTUYl82AKGq33YYEqpRlh1v6axyRFkjg0FuVIY2rbzkKmj Z5LutRvz1qV/C8q8mghz6j7koUZp31hBsdoYDjf+qiLZbExnir7zaQRDFuDmXvlPirea MEOVa4DlERhc8O8Pr6nqirN/DjeMh+KB3cx7W7mneNMwvc3JJMu3MxMxb/EHzDXfFNUh sKc0XTRG8Zes7mMloLyOSZLrkq/hibDOx1OwKA65DauMIOBR1jCj4gKxTQXUnrePiQPD mJyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=RFJF491NDAAIJE0YfJsKYmQ2IZRWZARbco2Y+A3P74g=; b=NHUiJIbOYT1gnvt9+HHCyS505GX3qN9nHuMoGDeTYz3Jok4ZxX72iEx68yDEHFOGZ7 5ZSGUIlxmlZP4oDyxlfGXF39+P4BRckaS67Xqu2htEmu2LDgL8DCh6IW0vUh14ZEwJdT WqX5ViUe18iE6yX6P3CXhb0K/XmfNW136DMRFmyvIuktTciSgY8a+cI4Nz5HDlXhtUED 2nVmHdYdozM4m36WU6aBySFpKVC5FryPhMjWXtb4CrwfyShYYwqs+kZOuYOE+R+QIwml 5XlE4dqFRnFwzNZ1ylOypu3kj0z7qbaZd2T4kWP2Vhz9+ga7hw0qbjJhky8Ujgl2aPbK hW2A== X-Gm-Message-State: AFqh2kqbExAT7Hdr39N3Xon9lHgLUNLVHCfSRPY7VhtPVvtaznODcWA2 h1D8P/nfQURfa1slDZNeFK/MK2j77K0C8hOUzbg= X-Google-Smtp-Source: AMrXdXvZOLIjexfqbRy3MsaKHrsHTZjP6JPrAXizVY+jDNis6ktnW/b2qaJX5yQb2ygGAmlzbj37il7WcohVwH21GfA= X-Received: by 2002:ab0:3488:0:b0:419:2a92:7be7 with SMTP id c8-20020ab03488000000b004192a927be7mr4859629uar.76.1672953113339; Thu, 05 Jan 2023 13:11:53 -0800 (PST) MIME-Version: 1.0 References: <3a891e61-a8b1-cfe4-95ab-c60e6ac6eb42@gmail.com> <202301031719.303HJq6A540885@darkstar.fourwinds.com> In-Reply-To: From: Rob Pike Date: Fri, 6 Jan 2023 08:11:42 +1100 Message-ID: To: Tom Ivar Helbekkmo Content-Type: multipart/alternative; boundary="0000000000000bec4f05f18ac043" Message-ID-Hash: 5KEUOP5JZSADCA2E3VH3WMBAJ4MXVP6J X-Message-ID-Hash: 5KEUOP5JZSADCA2E3VH3WMBAJ4MXVP6J X-MailFrom: robpike@gmail.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-tuhs.tuhs.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: TUHS main list X-Mailman-Version: 3.3.6b1 Precedence: list Subject: [TUHS] Re: A few comments on porting the Bourne shell List-Id: The Unix Heritage Society mailing list Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: --0000000000000bec4f05f18ac043 Content-Type: text/plain; charset="UTF-8" In the v8 shell, the "whatis" command's output is all parseable by the shell to recreate the item being identified. For instance, "whatis HOME" would print HOME=/usr/rob while "whatis cd" would print builtin cd and so on. I failed to convince POSIX or other forces to adopt this, and to this day remain puzzled why people couldn't see its value, even though of course not having an editable typescript does limit the flexibility somewhat. Plan 9 happened soon after. -rob On Fri, Jan 6, 2023 at 12:22 AM Tom Ivar Helbekkmo via TUHS wrote: > Jon Steinhart writes: > > > Wow! Small programs that do one thing and do it well connected together > to > > do more complicated things? What an awesome idea :-) > > *grin* > > Sometimes people call it "screen scraping", and seem to think it's wrong > to desire parseable output from commands. I like to point them at this: > > https://www.youtube.com/watch?v=tc4ROCJYbm0&t=358 > > -tih > -- > Most people who graduate with CS degrees don't understand the significance > of Lisp. Lisp is the most important idea in computer science. --Alan Kay > --0000000000000bec4f05f18ac043 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
In the v8 shell, the "whatis" command's output is a= ll parseable by the shell to recreate the item being identified. For instan= ce, "whatis HOME" would print

=C2=A0 =C2=A0HOME=3D/usr/rob
=

whil= e "whatis cd"

would print

=C2=A0 =C2=A0builtin cd

and so on. I= failed to convince POSIX or other forces to adopt this, and to this day re= main puzzled why people couldn't see its value, even though of course n= ot having an editable typescript does limit the flexibility somewhat.
=

Plan= 9 happened soon after.

-rob


=
On Fri, Jan 6, 2023 at 12:22 AM Tom I= var Helbekkmo via TUHS <tuhs@tuhs.org> wrote:
Jo= n Steinhart <jon@= fourwinds.com> writes:

> Wow!=C2=A0 Small programs that do one thing and do it well connected t= ogether to
> do more complicated things?=C2=A0 What an awesome idea :-)

*grin*

Sometimes people call it "screen scraping", and seem to think it&= #39;s wrong
to desire parseable output from commands.=C2=A0 I like to point them at thi= s:

https://www.youtube.com/watch?v=3Dtc4ROCJ= Ybm0&t=3D358

-tih
--
Most people who graduate with CS degrees don't understand the significa= nce
of Lisp.=C2=A0 Lisp is the most important idea in computer science.=C2=A0 -= -Alan Kay
--0000000000000bec4f05f18ac043--