From nobody Fri Jul 16 16:24:15 2021 X-Original-To: freebsd-current@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 384BA12416AA for ; Fri, 16 Jul 2021 16:24:18 +0000 (UTC) (envelope-from me@cameronkatri.com) Received: from cameronkatri.com (cameronkatri.com [206.189.178.249]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4GRGlj4QB5z4nmQ for ; Fri, 16 Jul 2021 16:24:17 +0000 (UTC) (envelope-from me@cameronkatri.com) Received: from FreeBSDY540 (c-73-84-80-103.hsd1.fl.comcast.net [73.84.80.103]) by cameronkatri.com (Postfix) with ESMTPSA id ADA304129F for ; Fri, 16 Jul 2021 12:24:16 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cameronkatri.com; s=20201109; t=1626452656; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=L1o1DeZggTvE3Yh89PTMoJNrvxk9IGCJTYIeQTwbIsk=; b=liPi5yf73XHpxyA787Q3tKY0GEvQs6Nuz0B2oVWjigNQ9bpB4utaReSsBoq6ocGFkw1Gwl zwOzLYinhU6eJT4rKTeN7g7uEBrHOgBnmDnSl5SvoPP7xoaS3SenKTXmVMsCjzzRKFC0hL H4pVfGLeaZjnFBQ8fLQwoxJTfU1R6mw= Date: Fri, 16 Jul 2021 12:24:15 -0400 To: freebsd-current@freebsd.org Subject: Re: PATH: /usr/local before or after /usr ? Message-ID: <20210716162415.iiidcsyybac2xttw@FreeBSDY540> References: <20210716155004.d2qiciqkipmegs3j@FreeBSDY540> List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="7jfqedueicoavsqu" Content-Disposition: inline In-Reply-To: X-Rspamd-Queue-Id: 4GRGlj4QB5z4nmQ X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=cameronkatri.com header.s=20201109 header.b=liPi5yf7; dmarc=pass (policy=reject) header.from=cameronkatri.com; spf=pass (mx1.freebsd.org: domain of me@cameronkatri.com designates 206.189.178.249 as permitted sender) smtp.mailfrom=me@cameronkatri.com X-Spamd-Result: default: False [-4.54 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; TO_DN_NONE(0.00)[]; DKIM_TRACE(0.00)[cameronkatri.com:+]; DMARC_POLICY_ALLOW(-0.50)[cameronkatri.com,reject]; NEURAL_HAM_SHORT(-1.00)[-1.000]; SIGNED_PGP(-2.00)[]; FROM_EQ_ENVFROM(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[206.189.178.249:from]; ASN(0.00)[asn:14061, ipnet:206.189.176.0/20, country:US]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RECEIVED_SPAMHAUS_PBL(0.00)[73.84.80.103:received]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.99)[-0.994]; R_DKIM_ALLOW(-0.20)[cameronkatri.com:s=20201109]; FREEFALL_USER(0.00)[me]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-0.94)[-0.943]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[206.189.178.249:from:127.0.2.255]; MID_RHS_NOT_FQDN(0.50)[]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-current] Reply-To: me@cameronkatri.com From: Cameron Katri via freebsd-current X-Original-From: Cameron Katri X-ThisMailContainsUnwantedMimeParts: N --7jfqedueicoavsqu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jul 16, 2021 at 10:11:41AM -0600, Alan Somers wrote: > Ugh, that's a good example. I was thinking more about interactive > programs, like say /usr/bin/vi vs editors/vim. Hypothetically how would > one solve the conflict if /usr/local/bin came before /usr/bin ? Install > binutils's binaries to /usr/local/libexec/binutils/ ? But a lot of ports > depend on binutils. That would be a ton of ports to update. >=20 > BTW my motivation for this thread is a new replacement for gstat that I'm > working on. I would like to name it "gstat", but if /usr/sbin must come > before /usr/local/sbin, then that won't be a very helpful name. > -Alan Or, you could give it a different name, install it to ~/.local/bin or probably the best option, `alias gstat=3D'/usr/local/sbin/gstat'`. But imo setting /usr/local/bin before /usr/bin will cause countless more problems than any issue it solves. - Cameron --=20 Cameron Katri Email: me@cameronkatri.com PGP Fingerprint: 7D3B36CEA40FCC2181FB6DCDBAFFD97826540F1C --7jfqedueicoavsqu Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEEfTs2zqQPzCGB+23Nuv/ZeCZUDxwFAmDxsq8ACgkQuv/ZeCZU DxyEAgf+LdZ/2gzyeBOpRHhfhiG+5Ijy48iaDeMLgmEs3pjMIRzgDNX/nupZ/cao UGbuKvrhLat0V2kMjZ2bRU739Z/KmJk84y/DoYC/Co5OYgyY0NwUXC8effmN2zrw fS4Q9khVOIS1061MwHPN2yVHLPJI8gKMbsCvaR4/JiYeMdxsbcpqKuyGeRROtywt ITcMDleF4kTiBUyZMfYbBkw4TCEukNAL5C85DtLNKtMZMAn7KFWN08wnzeBGFAa7 jM0XPELSXh/49T60FM6xM+BKQZiQQczurmp0QyZ++VDYJVM+vfT032sSROWcTXLf ahMWYXAuMCIGp4iBspdHNwMu+JHS2g== =sP/K -----END PGP SIGNATURE----- --7jfqedueicoavsqu--