From owner-dev-commits-src-all@freebsd.org Thu Sep 9 23:21:19 2021 Return-Path: Delivered-To: dev-commits-src-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id E38D3678CED; Thu, 9 Sep 2021 23:21:19 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4H5FPW60Chz4TPF; Thu, 9 Sep 2021 23:21:19 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id AE1A2223EA; Thu, 9 Sep 2021 23:21:19 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 189NLJKD047358; Thu, 9 Sep 2021 23:21:19 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 189NLJZq047357; Thu, 9 Sep 2021 23:21:19 GMT (envelope-from git) Date: Thu, 9 Sep 2021 23:21:19 GMT Message-Id: <202109092321.189NLJZq047357@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: d780a23a9947 - main - tabs: a hacky version of tabs appeared in 1st edition Unix MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: d780a23a9947039c997e785105160c78db1d134c Auto-Submitted: auto-generated X-BeenThere: dev-commits-src-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commit messages for all branches of the src repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Sep 2021 23:21:20 -0000 The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=d780a23a9947039c997e785105160c78db1d134c commit d780a23a9947039c997e785105160c78db1d134c Author: Warner Losh AuthorDate: 2021-09-09 23:11:18 +0000 Commit: Warner Losh CommitDate: 2021-09-09 23:11:18 +0000 tabs: a hacky version of tabs appeared in 1st edition Unix First edition Unix had an /etc/tabs file. It contained the escape sequences to set tabs to every 8 stops on an old Teletype Model 37 and compatible terminals. One would 'cat /etc/tabs' to reset them. Unix at the time effectively mandated this because the delays in the tty driver assumed this and tabs didn't work when they were too different from '8'. Document this historical niggle in HISTORY after it was brought to my attention on a Hacker News thread. Sponsored by: Netflix --- usr.bin/tabs/tabs.1 | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/usr.bin/tabs/tabs.1 b/usr.bin/tabs/tabs.1 index 9075de5fa7ff..614c8c96cb13 100644 --- a/usr.bin/tabs/tabs.1 +++ b/usr.bin/tabs/tabs.1 @@ -24,7 +24,7 @@ .\" .\" $FreeBSD$ .\" -.Dd May 20, 2002 +.Dd September 9, 2021 .Dt TABS 1 .Os .Sh NAME @@ -147,9 +147,14 @@ The utility conforms to .St -p1003.1-2001 . .Sh HISTORY +.Pa /etc/tabs +appeared in +.At v1 +which set tabs every 8 on Teletype model 37 and compatible printing terminals +when printed. A .Nm -utility appeared in PWB UNIX. +utility that worked on many terminals appeared in PWB UNIX. This implementation was introduced in .Fx 5.0 . .Sh BUGS