From nobody Wed Dec 18 22:13:23 2024 X-Original-To: freebsd-arch@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4YDD6M06Pjz5hJX5 for ; Thu, 19 Dec 2024 01:51:07 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from omta004.cacentral1.a.cloudfilter.net (omta002.cacentral1.a.cloudfilter.net [3.97.99.33]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "Client", Issuer "CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YDD6L46dHz4PHm; Thu, 19 Dec 2024 01:51:06 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Authentication-Results: mx1.freebsd.org; none Received: from shw-obgw-4002a.ext.cloudfilter.net ([10.228.9.250]) by cmsmtp with ESMTPS id Nz0ot8PwdyLQGO5gvtWA83; Thu, 19 Dec 2024 01:51:05 +0000 Received: from spqr.komquats.com ([70.66.136.217]) by cmsmtp with ESMTPSA id O5gutkNzw2M9qO5gvtIX4V; Thu, 19 Dec 2024 01:51:05 +0000 X-Auth-User: cschuber X-Authority-Analysis: v=2.4 cv=ce5xrWDM c=1 sm=1 tr=0 ts=67637c09 a=h7br+8Ma+Xn9xscxy5znUg==:117 a=h7br+8Ma+Xn9xscxy5znUg==:17 a=kj9zAlcOel0A:10 a=RZcAm9yDv7YA:10 a=6I5d2MoRAAAA:8 a=EkcXrb_YAAAA:8 a=YxBL1-UpAAAA:8 a=wFpZQ4enEcJt0rJBp9UA:9 a=CjuIK1q_8ugA:10 a=LK5xJRSDVpKd5WXXoEvA:22 a=Ia-lj3WSrqcvXOmTRaiG:22 Received: from slippy.cwsent.com (slippy [10.1.1.91]) by spqr.komquats.com (Postfix) with ESMTP id CF828C24; Wed, 18 Dec 2024 14:13:23 -0800 (PST) Received: by slippy.cwsent.com (Postfix, from userid 1000) id 9EA84179; Wed, 18 Dec 2024 14:13:23 -0800 (PST) X-Mailer: exmh version 2.9.0 11/07/2018 with nmh-1.8+dev Reply-to: Cy Schubert From: Cy Schubert X-os: FreeBSD X-Sender: cy@cwsent.com X-URL: http://www.cschubert.com/ To: Kyle Evans cc: freebsd-arch@freebsd.org Subject: Re: Removing shar(1) In-reply-to: <0d63a94d-2773-4efd-b789-0b753ab38b91@FreeBSD.org> References: <0d63a94d-2773-4efd-b789-0b753ab38b91@FreeBSD.org> Comments: In-reply-to Kyle Evans message dated "Tue, 17 Dec 2024 20:27:16 -0600." List-Id: Discussion related to FreeBSD architecture List-Archive: https://lists.freebsd.org/archives/freebsd-arch List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arch@FreeBSD.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 18 Dec 2024 14:13:23 -0800 Message-Id: <20241218221323.9EA84179@slippy.cwsent.com> X-CMAE-Envelope: MS4xfO829Rh5KqA1Qbxqx0WAVolM3jCQGIH8rHbrjFcOmWwlkBxVh4umzp+ToA+dN4JDCg02qXMkr1Z3MDcN/eJO6jiR7ehWLyXrSCDndD0tLPzEJPRNrjt6 qscoYn3lOPsvTmIwNmSPQNcMEwzvgEHwV5i5Mo/LSGWXPSnz/ej5japBYrifmgU1oMwFR+5NInr3PA/tvuSUP+i5nUlBRPlVvkDZxeo+fBixTvU8nVKzN0c2 X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:16509, ipnet:3.96.0.0/15, country:US] X-Rspamd-Queue-Id: 4YDD6L46dHz4PHm X-Spamd-Bar: ---- In message <0d63a94d-2773-4efd-b789-0b753ab38b91@FreeBSD.org>, Kyle Evans write s: > Hi, > > I was reminded the other day that shar(1) exists, though it's use is no > longer recommended in ports. The same functionality can be found in > tar(1) instead, so I think we should deorbit /usr/bin/shar and stop > promoting it entirely. sh(1) archives are really problematic from a > user standpoint for at least one reason best explained by the manpage: > > It is easy to insert trojan horses into shar files. It is strongly > recommended that all shell archive files be examined before running > them through sh(1). Archives produced using this implementation of > shar may be easily examined with the command: > > egrep -av '^[X#]' shar.file > > It's hard to advocate for their use in good conscience, much like it's > hard to advocate curl|sh pipes. > > Review: https://reviews.freebsd.org/D48130 I use it at $JOB, produce a shar file, cut/paste into a terminal. Should it be removed I'll perform the repo surgery to base a port on it. -- Cheers, Cy Schubert FreeBSD UNIX: Web: https://FreeBSD.org NTP: Web: https://nwtime.org e^(i*pi)+1=0