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=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,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 6d36927b for ; Tue, 17 Sep 2019 12:52:48 +0000 (UTC) Received: by minnie.tuhs.org (Postfix, from userid 112) id C51819C04C; Tue, 17 Sep 2019 22:52:47 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id 7706A947CC; Tue, 17 Sep 2019 22:52:32 +1000 (AEST) Authentication-Results: minnie.tuhs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="gVWkf9Eq"; dkim-atps=neutral Received: by minnie.tuhs.org (Postfix, from userid 112) id 929C2947CC; Tue, 17 Sep 2019 22:52:30 +1000 (AEST) Received: from mail-pf1-f182.google.com (mail-pf1-f182.google.com [209.85.210.182]) by minnie.tuhs.org (Postfix) with ESMTPS id 15200947A2 for ; Tue, 17 Sep 2019 22:52:30 +1000 (AEST) Received: by mail-pf1-f182.google.com with SMTP id y72so2102100pfb.12 for ; Tue, 17 Sep 2019 05:52:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=7as6wQhjJ+m8k4YiHbfKA6KCptUs7SLRHDzXxcFa/uo=; b=gVWkf9EqcnAe7iFNx4m0Q0UfjQVEsyisx+ICuGIXYo5cGV8DPX6Ch0R5R6KDXCg2WQ +hYc5H93QWxiS/YjqrVvm0p4uJCuiUGjwPnt8dbxFVQ0bA35GezY5wNZIQyh58UUuC1p 9N8kdRvZTrMoLOAimTOzA9OuyB38f5t1SmSgFlVY1QppRm8SzVSy2crTKV7rKuGmDt2n JlwzayyBf2cZ8+ArSFXXRN2HKkRqXcM50zN5I+/JovE/vRgPzuG2OupbIjo/QbZgcMdZ N0WE/uCqw6jfJblXQE7zzbfIpKO3Z+/sn9dNkpTBWj9e/r8vmQnxQs99Wyy22g71BFfO Ozrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=7as6wQhjJ+m8k4YiHbfKA6KCptUs7SLRHDzXxcFa/uo=; b=klbYtsxuaEWPHFTvCAuTiImwAjZkrMW6anQgPe++jJXJrxUgiLBZmWI6pHBNj0IT4L rZiXd7gsjLNvt5wN/D9RXYWdJiQNAHAG8wDDuW8Guc4zh0o15wu/SbAwGJ3YJYTM4cNC zRuYTIvmnI/hCvZE81Q45MdKZGwprCikJFmoL3xmIf/D1SCGYvHIujOGD2UF0qy7yjtQ cfQW/6E2d/HRq8xWDlcSXlV7ZbSIkWy9wqWsgaGimasBNVZHeu3UeHa5KxeXBtPqzJfZ bqlNSgeU0SRqMtXi+urEinuznSxNzbNIbWasu9E23eRuNfEa336RQkRf2TZc1IpjdJKw aLRg== X-Gm-Message-State: APjAAAURN06BaLrtIIhAKICxRzrhdnSpMTAFrl+RnxA7u0J1nB5R1p5m ySsWTuYafr4azUHz1cpsm24tv0TH X-Google-Smtp-Source: APXvYqyETuekjIvAgFe6TjJRkfjzGDEUcOR+aBmzy4d+6yR2RjF66HZb8XPTcBeGoojyebehcPLXyA== X-Received: by 2002:a63:475d:: with SMTP id w29mr3192324pgk.46.1568724748947; Tue, 17 Sep 2019 05:52:28 -0700 (PDT) Received: from localhost.localdomain ([1.144.138.154]) by smtp.gmail.com with ESMTPSA id z19sm2194531pgv.35.2019.09.17.05.52.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Sep 2019 05:52:28 -0700 (PDT) Date: Tue, 17 Sep 2019 22:52:24 +1000 From: "G. Branden Robinson" To: tuhs@tuhs.org Message-ID: <20190917125222.zpavtknp7f6v2hhx@localhost.localdomain> References: <20190915232524.9A5491570CE9@mail.bitblocks.com> <7F62BF6B-8FEA-4C43-9E35-05BDE9BF04EA@ccc.com> <20190916023738.F34E81570CE9@mail.bitblocks.com> <20190916202153.wbpzx3jn3a7rs6kb@localhost.localdomain> <20190917114602.GB6762@mit.edu> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="b2b4ckot45jgazht" Content-Disposition: inline In-Reply-To: <20190917114602.GB6762@mit.edu> User-Agent: NeoMutt/20180716 Subject: Re: [TUHS] INed/Rand Editor/Ned [was Re: My EuroBSDcon talk (preview for commentary) 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: , Errors-To: tuhs-bounces@minnie.tuhs.org Sender: "TUHS" --b2b4ckot45jgazht Content-Type: text/plain; charset=us-ascii Content-Disposition: inline At 2019-09-17T07:46:02-0400, Theodore Y. Ts'o wrote: > To be fair, spectre-multdown-checker is a shell script, and while you > can use tput, that's not super-portable (some versions take termcap > names, some take terminfo names, and the only thing that has been > standardized is "init", "clear", and "reset"), Now that you mention it I do remember Thomas Dickey saying that at some point. > and said script was designed to work on Linux and *BSD systems. In that case I'd query tput through a function that got defined differently based on the output of uname, or tput's own version string output if it could be coaxed into giving me one (Dickey's ncurses tput supports -V for this purpose; I don't know about the BSDs). The thrust is to get that egregious noise out of the output strings as written in the source file so as to preserve their human-readability. Better this: echo "${fg_black}${bg_cyan}STATUS:${normal}" Than: echo "\033[30m\033[43mSTATUS\033[m" ...in which am I more likely to notice typos? Given an editor that lexically analyzes your shell script[1], which is more likely to integrate well with a spell-checker? Regards, Branden [1] Okay, so that turns out to be nearly impossible, at least if you want to recognize every possible construct[2]. [2] https://hal.archives-ouvertes.fr/hal-01890044/ --b2b4ckot45jgazht Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEh3PWHWjjDgcrENwa0Z6cfXEmbc4FAl2A1vwACgkQ0Z6cfXEm bc4V7Q/9ETrw6fZcctEqZDfZXj0bKccPEGT17hHvNb+Zg1hiU7gTN9c46QlidI0+ KIeY4g25J4H01jnWXJMmQtwKKK345J3yYmgGCR7wjt9E/rJN2MQ4+E1dXqp0R+mJ VM6004Xquj2H8fmm59nWB0Q3sXmSGdaWrbmbrrM42tFU/YXzRgy/l7uP/8C+f9ZL jInQEPenLWKjyTggdouedygBaEM9nAlqLvORZsGLQ9qfw9/Y0vmTsIiebXHvErin zKB1ZEt4waCicGTDyoQQjOpH5zlSEh3LBSpe/0X6B0Kdgc/fAjrKKHlJrj0gv7Ac JsyRYJHueMHbw4gcVj+4Aednd+q9hnuMv6CQgCWhaYfWpBWXAVqkpEXd1ClpkcOS OjZezbsvi1Es/bm7YbOLD72DtpaQJxYRHy4lCrFFwY7vIgPndyl2oR0RMGSscl9F 5TPf7tg1/VNvvtcjQADaozAwMBzXfFH/0h5mkqvK1t/YRNTl1JHCqC0+vslGkiCd 42trPc0ye87lYNBk0JRXpE8OY2S3JZtURRR3vDx4KLvLAXn5obgjCsFhyzmHP7PR u0XSbpq7a4EWMDKIA7ee13DgIJfwMzDI61TWMdfIw0JOxMexiile+yN25QUfOlTc Hg8PMUzx/qFCdV0FiyrqjsoBih4QqVKGwvkc39b2ypKTcFfTnm0= =gxuy -----END PGP SIGNATURE----- --b2b4ckot45jgazht--