From nobody Fri Jul 16 16:46:02 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 D80631271EB1 for ; Fri, 16 Jul 2021 16:46:06 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from outbound4s.ore.mailhop.org (outbound4s.ore.mailhop.org [54.185.97.28]) (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 mx1.freebsd.org (Postfix) with ESMTPS id 4GRHDt4C3rz3Ccs for ; Fri, 16 Jul 2021 16:46:06 +0000 (UTC) (envelope-from ian@freebsd.org) ARC-Seal: i=1; a=rsa-sha256; t=1626453965; cv=none; d=outbound.mailhop.org; s=arc-outbound20181012; b=Wj/GLgUox2dhgUxKQimdaMcNB/zPghcrXD4HVphW5dJyx5ObKflRXeBxAu5JuH/Z7WcauQ3VEaqMW u+/IQZXCfJFvwwSST0Uns2JY6TT6Inqgi5JbEDxd3LjgGOGOb3m2X85PRpYlugFDjR7nCXRryN3Ehn WMAcVUAN8vYFOn9C9mgcfJmQ7Kfai9lFydRwqKUzDQUc2D38EaqutZoSaNCUwfUHoLQd1vM0NqUTFF 6gqe/lRDVnCFi1L4Yi12+bBH+6c9uS20tg0czODb3U0qhLYLH44BTG+Gg4DN2cerKs9T1eRHklQU0e 60Tx+0pZoeShfISzMc2CYSQ6L5YAQ3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=arc-outbound20181012; h=content-transfer-encoding:mime-version:content-type:references:in-reply-to: date:to:from:subject:message-id:dkim-signature:from; bh=ny57q/3lOgPCmyDKjY6CtiVw7jayOPBF3HS5GdNeejE=; b=nsIQSitZ2n+e1obnyfka2Y5V4V0YZ6f5ttsHSGJTiD8Nb0Cgyy/fjkGdZArEBFNsJBTkzRxzFM5nu EcDoMU1Y4KQOcwF3F2wRB8QwJKM+S59b69RpnnaIN1h3aLU6sDoLm4qjnX+l+VfmRhO8D2YgFUgVHr Sd0cua+/NidT9euCkEpA7NVLfc9id5SJXdMsypTuRpHuZ3EuDFZSrcvg78bySlCtvq0XoQRtUwtJks x4OxGY8rrxK2TkHGMZXdBFPT55xKHUWo7/6rsBrlkJNNMmyUPf2BjwJqTBuXs11rJ7tyKg6Jdjq2My 9hPS6YG3D5uBFkSS3sqORHUp0WGeULg== ARC-Authentication-Results: i=1; outbound4.ore.mailhop.org; spf=softfail smtp.mailfrom=freebsd.org smtp.remote-ip=67.177.211.60; dmarc=none header.from=freebsd.org; arc=none header.oldest-pass=0; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=dkim-high; h=content-transfer-encoding:mime-version:content-type:references:in-reply-to: date:to:from:subject:message-id:from; bh=ny57q/3lOgPCmyDKjY6CtiVw7jayOPBF3HS5GdNeejE=; b=ZsmXIX6jv7AxdYvFIlGgpGV3Hb4k7Co711381kNETvEzw8QIxOQzxyklSAjkD0s3QbPxmJ4fz2MRd stov9+pS4oB6P+5WGXVx1VcOHdmUAqIclqM/L1qaTQtzvHHzDYwbj+jN03XFVsJesdqUl7bochLO4w sE3JwBQgqyuKuo2DQUi17ZUA2YY+SOGT5dT/KdVPQ1oJ5QAT29pDECZGkdeYPWd1pRKjcM/t8LppHe WKhe0/crE8aSXXWjwWs/nVAxsYnQf4CAVawV4LeRHwoEDN+CWoUogTxYslCOVjxpsgr0HqiTsHDTiL //3FfU+OHsqOcUzij4C3RkuDb5kI3OA== X-Originating-IP: 67.177.211.60 X-MHO-RoutePath: aGlwcGll X-MHO-User: 4e8bbba7-e655-11eb-a657-89389772cfc7 X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Mail-Handler: DuoCircle Outbound SMTP Received: from ilsoft.org (c-67-177-211-60.hsd1.co.comcast.net [67.177.211.60]) by outbound4.ore.mailhop.org (Halon) with ESMTPSA id 4e8bbba7-e655-11eb-a657-89389772cfc7; Fri, 16 Jul 2021 16:46:03 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.15.2/8.15.2) with ESMTP id 16GGk2kR003064; Fri, 16 Jul 2021 10:46:02 -0600 (MDT) (envelope-from ian@freebsd.org) Message-ID: <662dbcebb38135deb1599cd9d8fee3e133330409.camel@freebsd.org> Subject: Re: PATH: /usr/local before or after /usr ? From: Ian Lepore To: Alan Somers , FreeBSD CURRENT Date: Fri, 16 Jul 2021 10:46:02 -0600 In-Reply-To: References: Content-Type: text/plain; charset="ASCII" X-Mailer: Evolution 3.28.5 FreeBSD GNOME Team 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-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4GRHDt4C3rz3Ccs X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: N On Fri, 2021-07-16 at 09:01 -0600, Alan Somers wrote: > FreeBSD has always placed /usr/local/X after /usr/X in the default PATH. > AFAICT that convention began with SVN revision 37 "Initial import of 386BSD > 0.1 othersrc/etc". Why is that? It would make sense to me that > /usr/local/X should come first. That way programs installed from ports can > override FreeBSD's defaults. Is there a good reason for this convention, > or is it just inertia? > -Alan I have a hierarchy on my machines rooted at /local and /local/bin is before /bin and /usr/bin in my PATH, so I can override system tools when I explicitly want to without suffering any problems of an unexpected override from installing a port or package. If you're using ports as a development environment to work on a new gstat replacement, you could do something similar and put PREFIX=/local in your port makefile while you're developing on it. -- Ian