]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
rc.subr add Exists so we can find sed
authorSimon J. Gerraty <sjg@FreeBSD.org>
Mon, 12 Feb 2024 22:39:20 +0000 (14:39 -0800)
committerSimon J. Gerraty <sjg@FreeBSD.org>
Mon, 12 Feb 2024 22:39:20 +0000 (14:39 -0800)
commitb75bb99621fbebae3b7f56ea01e711333d0455d8
tree5f306338e7dac3de87a63a7445c16212dfe1ea58
parentf616d61ab6b071e5fbfdbae7033a9ef04c1444ad
rc.subr add Exists so we can find sed

SED=`Exists -x /usr/bin/sed /rescue/sed`

avoids adding /rescure to $PATH, and allows use of sed
before /usr is mounted (if a separate filesystem).

Reviewed by: jlduran_gmail.com
Differential Revision: https://reviews.freebsd.org/D43826
libexec/rc/rc.subr
libexec/rc/safe_eval.sh