From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from minnie.tuhs.org (minnie.tuhs.org [45.79.103.53]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id 2da673e5 for ; Tue, 7 Jan 2020 00:50:56 +0000 (UTC) Received: by minnie.tuhs.org (Postfix, from userid 112) id 09D279BBD6; Tue, 7 Jan 2020 10:50:55 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id E2E7C9BB66; Tue, 7 Jan 2020 10:50:24 +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="tjlVC7ui"; dkim-atps=neutral Received: by minnie.tuhs.org (Postfix, from userid 112) id 969809BB66; Tue, 7 Jan 2020 10:50:22 +1000 (AEST) Received: from mail-qt1-f194.google.com (mail-qt1-f194.google.com [209.85.160.194]) by minnie.tuhs.org (Postfix) with ESMTPS id E50B49BB4A for ; Tue, 7 Jan 2020 10:50:21 +1000 (AEST) Received: by mail-qt1-f194.google.com with SMTP id k40so43999202qtk.8 for ; Mon, 06 Jan 2020 16:50:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=ItYdnzy+8DJH/zlCTjK2vxEMJDea74gjaE+d7knzutE=; b=tjlVC7uiEhZifLc5pZV+KklJfZoa1OxMqsNG6rJIm0pKl0GqzyzXbrSuvHDzGUAc/1 7RmhM8IGeeVj8Iq1kLsvsAEjcjtDBCkhCK5YcOmvZsqryBgzGPTvyLGkniUGsPgVdQdZ vcE6y2Bfu4dgbu1T9WpSqLjC6G7hDPoq/x8y+3B7nMEeRSVdAC3zTm4qQAkTuYUsyuIt 0jZOQIRpqOqnu6Nn+J53q+wVPNNW9+IDOe+f5BcXkkM09A/Um0z4Jm3hsof9Ga36KcKQ 3R65jLyl0o47GseLpp/GKinsGYtc2UHKNndjhvrAk2Xba8mUjJpO93ILC1sy7Tj1lXbX foLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=ItYdnzy+8DJH/zlCTjK2vxEMJDea74gjaE+d7knzutE=; b=t3eGqY+uk41dAM0S8340fC2KB5zXf4fuWXtvVwdJY4ddH5s5N5IGD2ZaEupKQcchet pnMw3XPl4WsAv17PFOTklttxo+5fA+GVB1+vfhQBWRCUrXxSr51kh0NyzIX5pcTnxs5o ZkzYwStwtOVJ0cVjVJSfcdP+VgHfM0fWTmbZwO/0lZx86amPvPMQ6lEWuC199SR0QuAg HybEhwr+zRAxHAKTuOf2Zl/qV4kCkGlzHEALE8b4jHrWVNK9G3wda9zjINJCBN1ywFWw 5+VVpdt4DIm1sNJgrhzZNDs5XS7ySpQXlnBr07nvTGUptMTBRb17wb/+J8Foyw/x/CkP sfIA== X-Gm-Message-State: APjAAAVvCKa5sg2agTxCbTy4cH+Y0g7aYOm4RmVt6ica4Rcq0QPhFZZu u86S1x+9kcpH545bIH1+jY9jP4KYuhQ= X-Google-Smtp-Source: APXvYqz5e+B8mnnY/OPXBI+RMhUL3yIPpgH2jn+9DINZLV4pg+lCJduhJ4x5KPdsNrM1fa4t91nDEw== X-Received: by 2002:aed:2b04:: with SMTP id p4mr75371848qtd.270.1578358220816; Mon, 06 Jan 2020 16:50:20 -0800 (PST) Received: from ?IPv6:2600:8800:7c80:98b:2851:20de:581d:97f8? ([2600:8800:7c80:98b:2851:20de:581d:97f8]) by smtp.gmail.com with ESMTPSA id m20sm21542709qkk.15.2020.01.06.16.50.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 06 Jan 2020 16:50:20 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.40.2.2.4\)) From: Adam Thornton In-Reply-To: Date: Mon, 6 Jan 2020 17:50:18 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: <572C7C41-0B92-461C-88F9-5EC5436A66F5@gmail.com> References: <202001040258.0042wuic1359237@mail.cs.dartmouth.edu> <1ingL0-5g6-00@marmaro.de> <854eca1c-e5e5-5d8b-f5af-30cd1735096e@case.edu> <3958ec66-c5c0-e1bc-1476-2195907816b3@case.edu> <49E33BA0-C482-4A95-BF2B-2107C661D76B@coraid.com> <202001061546.006Fk6Fb012760@freefriends.org> To: chet.ramey@case.edu X-Mailer: Apple Mail (2.3608.40.2.2.4) Subject: Re: [TUHS] sh: cmd | >file 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: The Eunuchs Hysterical Society Errors-To: tuhs-bounces@minnie.tuhs.org Sender: "TUHS" > On Jan 6, 2020, at 2:55 PM, Chet Ramey wrote: >=20 > On 1/6/20 4:29 PM, Dave Horsfall wrote: >> On Mon, 6 Jan 2020, arnold@skeeve.com wrote: >>> Would anyone who uses Bash regularly, both interactively and >>> for scripting, really want to go back to using the V7 sh >>> for production work? >> I have never used all the fancy stuff in BASH such as the arithmetic >> functions; I still use "expr" etc for portability. >=20 > Portability to what? The POSIX $((...)) arithmetic expansion is widely > implemented and near-universally available. >=20 > Some of the other things are more esoteric, but you should be able to > increase your expectation to POSIX features and still be sufficiently > portable. >=20 Portability to v7, of course! I mean, I=E2=80=99m joking, but also not. I felt like v7 might be enough of a daily driver that I could port some = fun stuff to it, but=E2=80=A6damn, even ex/vi 3.x is huge, jove will = take a lot of work, and I can=E2=80=99t find a minimalist screen editor = in K&R C. The best I=E2=80=99ve managed is TE but although there is = presumably a Unix port, I couldn=E2=80=99t find it. Porting termcap and = curses was easy, but=E2=80=A6.the whole reason I want them, initially, = is so that I don=E2=80=99t have to use ed. If anyone knows of a small = screen editor that will build easily on v7 I want to know about it. This is in contrast to 2.11BSD, where, yeah, it=E2=80=99s just Unix, and = especially with a TCP/IP stack, is completely usable. The PDP-11=E2=80=99= s 64K address space is constraining and (as it turned out) influences = the way I write programs=E2=80=94for my menu front end for ZIP, I = started with my usual technique of making a struct with all the fields = I=E2=80=99d want for my menu structure, and a linked list of those = things, but that turned out to be a hog and a simple **char plus some = utility functions to index the elements ended up being completely = adequate. Adam=