446da52f9e
In single-user mode, all env vars are absent, so exptilde() would not be
able to expand ~ correctly.
Place the lines setting PATH below HOME, so exptilde() would work as
expected.
Sponsored by: The FreeBSD Foundation
Reviewed by: jilles, emaste
Differential Revision: https://reviews.freebsd.org/D27003
(cherry picked from commit fcfa64801a
)
20 lines
507 B
Plaintext
20 lines
507 B
Plaintext
# $FreeBSD$
|
|
#
|
|
HOME=/root
|
|
export HOME
|
|
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:~/bin
|
|
export PATH
|
|
TERM=${TERM:-xterm}
|
|
export TERM
|
|
PAGER=less
|
|
export PAGER
|
|
|
|
# set ENV to a file invoked each time sh is started for interactive use.
|
|
ENV=$HOME/.shrc; export ENV
|
|
|
|
# Query terminal size; useful for serial lines.
|
|
if [ -x /usr/bin/resizewin ] ; then /usr/bin/resizewin -z ; fi
|
|
|
|
# Uncomment to display a random cookie on each login.
|
|
# if [ -x /usr/bin/fortune ] ; then /usr/bin/fortune -s ; fi
|