git: 446da52f9e6e - stable/13 - sh: Set PATH envvar after setting HOME in dotfile
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 31 Oct 2021 01:03:43 UTC
The branch stable/13 has been updated by khng: URL: https://cgit.FreeBSD.org/src/commit/?id=446da52f9e6eef72041d6ae338ada23761d41f70 commit 446da52f9e6eef72041d6ae338ada23761d41f70 Author: Ka Ho Ng <khng@FreeBSD.org> AuthorDate: 2021-10-26 14:48:57 +0000 Commit: Ka Ho Ng <khng@FreeBSD.org> CommitDate: 2021-10-31 00:46:41 +0000 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 Reviewed by: jilles, emaste Differential Revision: https://reviews.freebsd.org/D27003 (cherry picked from commit fcfa64801a4fe836ff481465ea068e791aa4ce6a) --- bin/sh/dot.profile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/sh/dot.profile b/bin/sh/dot.profile index fd0c43fdb927..e296a360bcc7 100644 --- a/bin/sh/dot.profile +++ b/bin/sh/dot.profile @@ -1,9 +1,9 @@ # $FreeBSD$ # -PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:~/bin -export PATH 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