]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
sh: Set PATH envvar after setting HOME in dotfile
authorKa Ho Ng <khng@FreeBSD.org>
Tue, 26 Oct 2021 14:48:57 +0000 (22:48 +0800)
committerKa Ho Ng <khng@FreeBSD.org>
Sun, 31 Oct 2021 00:46:41 +0000 (08:46 +0800)
commit446da52f9e6eef72041d6ae338ada23761d41f70
tree1784d3c4032622750fa6d8f752573d78da02b437
parent000b70f038f4fd6893d69bd3dce75a416cd13dfe
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