From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: from minnie.tuhs.org (minnie.tuhs.org [IPv6:2600:3c01:e000:146::1]) by inbox.vuxu.org (Postfix) with ESMTP id B09F02ED0F for ; Thu, 5 Dec 2024 23:05:45 +0100 (CET) Received: from minnie.tuhs.org (localhost [IPv6:::1]) by minnie.tuhs.org (Postfix) with ESMTP id 53D1F4272D; Fri, 6 Dec 2024 08:05:42 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuhs.org; s=dkim; t=1733436342; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-owner:list-unsubscribe:list-subscribe:list-post; bh=Z+kEZ+DFKKEgwLmctA+es3kStDCw5/388M7rl+w18b8=; b=O6FQpOELKxAOdvuPrG8/A1NOKNuWpFTCKrHKyirxVygLEaf+eP8d3nQEck5sqTDgSec8/d hJiZd1oUKmuTgpgbPUsUhozeQWhj7Rou78ZiUdeq0YGF5v851CmCgGGBe8Z/4eizGc7Fdw JdYCoTZrdGVNcVW1EQzw9tMiKDMamWI= Received: from mail-pg1-x534.google.com (mail-pg1-x534.google.com [IPv6:2607:f8b0:4864:20::534]) by minnie.tuhs.org (Postfix) with ESMTPS id 64F8A4272B for ; Fri, 6 Dec 2024 08:05:38 +1000 (AEST) Received: by mail-pg1-x534.google.com with SMTP id 41be03b00d2f7-7fcdec70291so72554a12.2 for ; Thu, 05 Dec 2024 14:05:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iitbombay.org; s=google; t=1733436338; x=1734041138; darn=tuhs.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=Z+kEZ+DFKKEgwLmctA+es3kStDCw5/388M7rl+w18b8=; b=YAZp4IhYnJIt4yYub1RHHHiBfAwrvsmixy/7JWQQknLdxQmADtV52HlTyYdAiEAEGv jEUby87Oas8JDhS8sBeyPVoBJn41VPy4QStsRVFkPVkaU1CzfK8FXJQPudmXgv5vA8/B Heqt8yA1Mw3sObRuU3YnMeXQS1geVP4OGSch8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733436338; x=1734041138; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Z+kEZ+DFKKEgwLmctA+es3kStDCw5/388M7rl+w18b8=; b=bcJtPXxvi7mxcHzMcWWwJaCaLGyOR6lZAd/h+wplCaPflKwz7lA/hqBnBo4tuWFbXT BM/EXxIYlZRqLFCu3ZhOhjXLc7ca8Lo7YCmUwv7klfil0J5Wn8mVGx0td37AFjgJBK5c BJSAM/yTDTFrTsn0Sl7PpVnFROz5ZWmk3n6oNnAQpwzSjuwHNSaNGB2nbvcwM4OW63oi dlXYj4rnDV6oAm9Q+SRDN/FkmWzJurmF9D2kVpYEGyZvWUhjxMm99s37kLJ4hgLAf1Av EP4EpDherHWufkS2OTNeHRR6ntv0+izUzBVqxR66GulxuTf/VeiY3I7LlZXQ2aCBR8+H yyDQ== X-Forwarded-Encrypted: i=1; AJvYcCXy2RznGtAti4s2ORXlJLWgrzS57z6wUhyO+hAUSCNrx1HN/V14oAT8kd+d1uVQyJHoKDdX@tuhs.org X-Gm-Message-State: AOJu0Yxg7nmHHqX0+N7UUWr79kLGNQo8EhIBj/aCvpZFq0iGlLRmVPnW f1FxEBH6LusGdVY+JyKjSHeDJ1EI6Bd23e1lR/PffOfgOxIYGFIdYxKZ6PhAfA== X-Gm-Gg: ASbGnctC7NW4lRGhtP7RMCITNYJxC88NzJnSeNTs08Y/NwvQoc+/vX15yxXMSyPIu8D 9vp7viipZXI0h2UpteANcnizb1Xm4orT2C1UxXBnfAID9q2JJ4+mRmhER15Bt99uca5Lz5wqn2i ESt0m4pHRJrQ0DyvYa+SAE/8ZvRRsm3CIY9lp5e+bRFiTGPojB4SIPmSwzh8h8w0g9bSWHarBhe DdtI4g+WbR4LTMPGE4hfv6PFXCksMNLfHhixkF3XWEiLRwCacY7SX9J2vTz/coMp5xjMWp3waI4 G9KaJYU112wm/Ezl0M+Zo8Iw5fDWoGHpiHpu697wHIag/ok= X-Google-Smtp-Source: AGHT+IFN7+dOPc4xj+ReHxtcPJZ7k8IrXtMRMJE5qbR2Ae46yLXTk8+TnJOJ9gasLEbGsdtrZsRh2w== X-Received: by 2002:a05:6a20:748b:b0:1cf:4bd8:3a02 with SMTP id adf61e73a8af0-1e1870ad370mr437790637.3.1733436337878; Thu, 05 Dec 2024 14:05:37 -0800 (PST) Received: from smtpclient.apple (107-215-223-229.lightspeed.sntcca.sbcglobal.net. [107.215.223.229]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-7fd156b7964sm1566677a12.18.2024.12.05.14.05.36 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 05 Dec 2024 14:05:37 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.200.121\)) In-Reply-To: Date: Thu, 5 Dec 2024 14:05:26 -0800 Content-Transfer-Encoding: quoted-printable Message-Id: <19B4DBDC-4342-4557-925D-8D546DC9D84F@iitbombay.org> References: To: Dan Cross X-Mailer: Apple Mail (2.3826.200.121) Message-ID-Hash: IYLVEWYGRHV7BNAWZ24HDWQXLVT2QCIO X-Message-ID-Hash: IYLVEWYGRHV7BNAWZ24HDWQXLVT2QCIO X-MailFrom: bakul@iitbombay.org 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: johnl@taugh.com, tuhs@tuhs.org, marc.donner@gmail.com X-Mailman-Version: 3.3.6b1 Precedence: list Subject: [TUHS] Re: Pipes (was Re: After 50 years, what has the Impact of Unix been?) List-Id: The Unix Heritage Society mailing list Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Bakul Shah via TUHS Reply-To: Bakul Shah X-Spam: Yes On Dec 5, 2024, at 1:13 PM, Dan Cross wrote: >=20 > And indeed these things are pretty nifty, but don't they generate > trees, and not arbitrary dags? They don't quite capture the full > generality of Morrison-style networks since it doesn't seem like > there's a way to connect process substitution fan-out with fan-in; at > least, not conveniently. Isn=E2=80=99t that a limitation of the shell language(s)? It would be easier in a 2D graphical shell but that would perhaps make specifying the more common simpler pipelines harder! A "linear" syntax would require *naming*. For example, let-proc a =3D "foo -a", b =3D "bar -c -d", c =3D "zee" in a.in1 =3D file1, a.in2 =3D file2, b.in1 =3D a.out, b.in2 =3D file3, c.in1 =3D b.out1, c.in2 =3D a.out, c.out =3D file4; Here names a, b & c are used to denote *processes*, with connections specified in the next two lines. Once all the pipes are created, processes a, b & c can be started giving them the right endpoints in forked processes prior to execing. Doable but not really worth it. At this point you may as well use s-expressions!=