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_INVALID,DKIM_SIGNED, HTML_MESSAGE,MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 25697 invoked from network); 30 Jan 2023 13:28:28 -0000 Received: from minnie.tuhs.org (50.116.15.146) by inbox.vuxu.org with ESMTPUTF8; 30 Jan 2023 13:28:28 -0000 Received: from minnie.tuhs.org (localhost [IPv6:::1]) by minnie.tuhs.org (Postfix) with ESMTP id 224B1425C8; Mon, 30 Jan 2023 23:28:05 +1000 (AEST) Received: from mail-vk1-f172.google.com (mail-vk1-f172.google.com [209.85.221.172]) by minnie.tuhs.org (Postfix) with ESMTPS id 3B201425A6 for ; Mon, 30 Jan 2023 23:28:00 +1000 (AEST) Received: by mail-vk1-f172.google.com with SMTP id s76so382918vkb.9 for ; Mon, 30 Jan 2023 05:28:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ccil-org.20210112.gappssmtp.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=5dmnxeL+Iu73w91TgFvBIsNGxcwEfw9jaBBG11MfMRg=; b=O24Sfm4HAbdyy7pYD4MRj/alHystknw3YXLSHAdpYUcemu+CfrlWeA1etrCf9gLmWC 9dAL6oqblA7zPKbwLXFhfGZ7cou6inXvikYZemXauc4EjGuyJUQStwP1W1VlXD9JpCxS HwV24tr3Aal61zJ6rSXjZTvh9Pn8DmspvNOuVJHmhKijvEW1dxFbj6r4q+bc1ZmZ8DtA RV2O1fYTa1vLOsKX8YABG9TpjyK6w/gC6XhYWXw6UHlnaRLUb0h5UpCgssBnRFcw7isY iNPPJAItvcf9IEj1GujXS1+KbfYEXncw+/gFzl/vqpASWaUN0zC8llFbUyLpDa2wKJxj nJxQ== 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=5dmnxeL+Iu73w91TgFvBIsNGxcwEfw9jaBBG11MfMRg=; b=tt1sWebfaalIOrp9xLxE0r6rqhxV3ufiqx+PSqVI5z36DnO4kFb8rry4eJ60KkjWM3 T/UT3QVQnNCFdGlBUQT6WS2daV0NaMFda28lzy0kjTZmuwQpaBLofRncDMuO2wSN3PTC T7dlPKkAjJB5NIvBJSfTBDxtua8rBBUSgkaBxlGqGAkLywXVXYx8wu2jKwG1GY67UcMa YdnE/xWymTPICRQTzvDgIq9m/NugsZflpmuR7Z6YRei6gETHoWysRI30rxfte36mzQb9 dsWgF7UBWqD0i15zQL98TbxfY01W+FPURdAh9N7HstMyEcqoZYTNZUaf9rmLacoeiPkS fIfg== X-Gm-Message-State: AO0yUKW0F33vI4ordpU7PQfULZFSiB5qpoCBRBaT+zWsJ+7e27q2d6I9 cIDwTUB5B0y6hb6YU7JXvptAjR9ZI/2z5HL2+PHgawBHdy3J8A== X-Google-Smtp-Source: AK7set/dxCy/6MD7n2pwiVYSdtKtiYfT8/jsk9jq5WZzJjqNbkpTqL+0noWrNtM1kfAeRw4d0ebqQSVbEzwYAhCERtM= X-Received: by 2002:a05:6122:2091:b0:3ea:67c1:b1ad with SMTP id i17-20020a056122209100b003ea67c1b1admr15032vkd.7.1675085219337; Mon, 30 Jan 2023 05:26:59 -0800 (PST) MIME-Version: 1.0 References: <202301300750.30U7oQTh013304@freefriends.org> In-Reply-To: <202301300750.30U7oQTh013304@freefriends.org> From: John Cowan Date: Mon, 30 Jan 2023 08:26:48 -0500 Message-ID: To: arnold@skeeve.com Content-Type: multipart/alternative; boundary="00000000000077add005f37b2bd5" Message-ID-Hash: UP7YXP333OL7WDJKFE3XKFSVBEK7PWTY X-Message-ID-Hash: UP7YXP333OL7WDJKFE3XKFSVBEK7PWTY X-MailFrom: cowan@ccil.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: tuhs@tuhs.org X-Mailman-Version: 3.3.6b1 Precedence: list Subject: [TUHS] Re: FD 2 List-Id: The Unix Heritage Society mailing list Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: --00000000000077add005f37b2bd5 Content-Type: text/plain; charset="UTF-8" On Mon, Jan 30, 2023 at 2:50 AM wrote: What I really like is how in V8 - V10 /dev/tty was a (sym)link to /dev/fd/3, and init simply did one more dup call. That eliminated the special tty device driver and was a lovely generalization / simplification. It's too bad this was never picked in the commercial Unixes or in Linux. That's problematic. I often need to redirect 2>&1 in order to get a stream of both output and error into a file or into less(1), without interfering with *input* from the terminal, as for example a password. --00000000000077add005f37b2bd5 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Mo= n, Jan 30, 2023 at 2:50 AM <arnold@= skeeve.com> wrote:

What I really like is how in V8 - V10 /dev/tty was a (sym)link to /dev/fd/3= ,
and init simply did one more dup call. That eliminated the special tty devi= ce
driver and was a lovely generalization / simplification.=C2=A0 It's too= bad this
was never picked in the commercial Unixes or in Linux.

That&= #39;s problematic.=C2=A0 I often need to redirect 2>&1 in order to g= et a stream of both output and error into a file or into less(1), without i= nterfering with *input* from the terminal, as for example a password.
=
--00000000000077add005f37b2bd5--