Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Jul 2021 12:24:15 -0400
From:      Cameron Katri via freebsd-current <freebsd-current@freebsd.org>
To:        freebsd-current@freebsd.org
Subject:   Re: PATH: /usr/local before or after /usr ?
Message-ID:  <20210716162415.iiidcsyybac2xttw@FreeBSDY540>
In-Reply-To: <CAOtMX2goig40oef3XEcM=Pu5-9tF4iwDVbTxA=FvYVaaFk0L3A@mail.gmail.com>
References:  <CAOtMX2g3G0nFCXGoWo14d1iwOisBUBAom6=v_gTHfJOoT3mJdw@mail.gmail.com> <20210716155004.d2qiciqkipmegs3j@FreeBSDY540> <CAOtMX2goig40oef3XEcM=Pu5-9tF4iwDVbTxA=FvYVaaFk0L3A@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20210716162415.iiidcsyybac2xttw>