Changeset View
Changeset View
Standalone View
Standalone View
share/man/man8/rc.subr.8
Show All 23 Lines | |||||
.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | .\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | ||||
.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | .\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | ||||
.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | .\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||||
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | ||||
.\" POSSIBILITY OF SUCH DAMAGE. | .\" POSSIBILITY OF SUCH DAMAGE. | ||||
.\" | .\" | ||||
.\" $FreeBSD$ | .\" $FreeBSD$ | ||||
.\" | .\" | ||||
.Dd January 5, 2019 | .Dd August 12, 2019 | ||||
.Dt RC.SUBR 8 | .Dt RC.SUBR 8 | ||||
.Os | .Os | ||||
.Sh NAME | .Sh NAME | ||||
.Nm rc.subr | .Nm rc.subr | ||||
.Nd functions used by system shell scripts | .Nd functions used by system shell scripts | ||||
.Sh SYNOPSIS | .Sh SYNOPSIS | ||||
.Bl -item -compact | .Bl -item -compact | ||||
.It | .It | ||||
▲ Show 20 Lines • Show All 515 Lines • ▼ Show 20 Lines | |||||
.Pa /usr | .Pa /usr | ||||
is mounted. | is mounted. | ||||
.It Va ${name}_env | .It Va ${name}_env | ||||
A list of environment variables to run | A list of environment variables to run | ||||
.Va command | .Va command | ||||
with. | with. | ||||
This will be passed as arguments to the | This will be passed as arguments to the | ||||
.Xr env 1 | .Xr env 1 | ||||
utility. | utility if | ||||
.Va command | |||||
is set. | |||||
In the other case, however, | |||||
when | |||||
.Ar argument Ns Va _cmd | |||||
is defined instead, | |||||
the contents of | |||||
.Va ${name}_env | |||||
will be evaluated with | |||||
bcr: s/the/then/
(You can also leave out the "the" completely) | |||||
.Xr sh 1 | |||||
eval and variables set there will be exported. | |||||
.It Va ${name}_env_file | .It Va ${name}_env_file | ||||
A file to source for environmental variables to run | A file to source for environmental variables to run | ||||
.Va command | .Va command | ||||
with. | with. | ||||
Note that all the variables which are being assigned in this file are going | Note that all the variables which are being assigned in this file are going | ||||
to be exported into the environment of | to be exported into the environment of | ||||
.Va command . | .Va command . | ||||
.It Va ${name}_fib | .It Va ${name}_fib | ||||
▲ Show 20 Lines • Show All 352 Lines • Show Last 20 Lines |
s/the/then/
(You can also leave out the "the" completely)