sh: Set PATH envvar after setting HOME in dotfile
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 MFC after: 3 days Reviewed by: jilles, emaste Differential Revision: https://reviews.freebsd.org/D27003
This commit is contained in:
parent
426682b05a
commit
fcfa64801a
@ -1,9 +1,9 @@
|
|||||||
# $FreeBSD$
|
# $FreeBSD$
|
||||||
#
|
#
|
||||||
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:~/bin
|
|
||||||
export PATH
|
|
||||||
HOME=/root
|
HOME=/root
|
||||||
export HOME
|
export HOME
|
||||||
|
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:~/bin
|
||||||
|
export PATH
|
||||||
TERM=${TERM:-xterm}
|
TERM=${TERM:-xterm}
|
||||||
export TERM
|
export TERM
|
||||||
PAGER=less
|
PAGER=less
|
||||||
|
Loading…
Reference in New Issue
Block a user