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, MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 25462 invoked from network); 23 Jan 2023 15:52:34 -0000 Received: from minnie.tuhs.org (50.116.15.146) by inbox.vuxu.org with ESMTPUTF8; 23 Jan 2023 15:52:34 -0000 Received: from minnie.tuhs.org (localhost [IPv6:::1]) by minnie.tuhs.org (Postfix) with ESMTP id 7CBD242567; Tue, 24 Jan 2023 01:51:58 +1000 (AEST) Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11]) by minnie.tuhs.org (Postfix) with ESMTPS id 02FF542563 for ; Tue, 24 Jan 2023 01:51:53 +1000 (AEST) Received: from cwcc.thunk.org (pool-173-48-120-46.bstnma.fios.verizon.net [173.48.120.46]) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id 30NFpgIW009726 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 23 Jan 2023 10:51:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mit.edu; s=outgoing; t=1674489104; bh=BcgxuWxKYfPxGvqpwcnvdi0RCy8tkXX8BdSJfa73kb4=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=knJTK8K08J36NIrKuTGA6Jeu5KQFm6NWSJNCEudT0bD+j6QF2LdxB0kRcr6eP9z7H cBR82NuJdCdpduVI/Dmq4lpOX2duQyNR/SbgkSlPVRJ1j5MwY/xPcRdGC6953pH9+d ZtHVY5wDGiGCrkjMMgzK/cLG9GYiQ50OgNLCFG3ztibhNwfm1R/aJSPM1lAWaiqgss k/4HIEa7MuzoCHWt+FYg5OZBOFVW5SBqdWBhON0gyZ/XlE7hFz1eVJbNcb6aC285iz g96FXV0ScuvKw8HDK6oh9Iwv9IeAzlzX1UN2jSJTlIhJjj+Ko8981i8DX8J0QQNtQW 4Q3XomwFrK58A== Received: by cwcc.thunk.org (Postfix, from userid 15806) id EB78215C469B; Mon, 23 Jan 2023 10:51:41 -0500 (EST) Date: Mon, 23 Jan 2023 10:51:41 -0500 From: "Theodore Ts'o" To: Chet Ramey Message-ID: References: <202301221452.30MEqrRq025402@freefriends.org> <351292a2-7800-4c00-8e33-c6cfc51dedb7@app.fastmail.com> <64e4b53e-04a6-5da1-334e-33dfbceb4ace@case.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <64e4b53e-04a6-5da1-334e-33dfbceb4ace@case.edu> Message-ID-Hash: NREVBTQTT4QZCMTJU7EUO3ICBQTZ76CP X-Message-ID-Hash: NREVBTQTT4QZCMTJU7EUO3ICBQTZ76CP X-MailFrom: tytso@mit.edu 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: segaloco X-Mailman-Version: 3.3.6b1 Precedence: list Subject: [TUHS] Re: Cooked Mode (v8 shell) List-Id: The Unix Heritage Society mailing list Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: On Mon, Jan 23, 2023 at 09:49:08AM -0500, Chet Ramey wrote: > On 1/23/23 9:45 AM, Brian M Zick wrote: > > > 6) It ran in cooked mode. > > > > Sorry if this is obvious to everyone else: What does this phrase mean? > > It did not perform line editing, so it did not change the terminal modes > and read one character at a time. If you only ever read a line at a time > from the terminal, you can let the terminal driver do that for you. I've never been convinced by that particular argument, since if you want command-line completion, the terminal driver is way too low-level. I suppose you could have callouts from the kernel to applications that were willing to provide context-sensitive command-line completion lists, which is how Multics handled things (trivia for the day: the libss library used by Linux's e2fsprogs and MIT Kerberos v5's kadmin interface uses an API inspired by Multics' subsystem library), but the point is that you can't do it all in the terminal driver. Cheers, - Ted