Skip to content

Commit 6f3f5c7

Browse files
committed
profile: Investigating automatically reversed PATH
1 parent 5c69a7e commit 6f3f5c7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

profile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,19 @@
1010
# ~/.bash_profile. Personal aliases and functions should go into
1111
# ~/.bashrc.
1212

13+
14+
export PATH MANPATH
1315
_IFS="$IFS" IFS='
1416
'
15-
export PATH MANPATH
16-
1717
for pth in $(cat /etc/paths.d/._* /etc/paths /etc/paths.d/*); do
1818
[ "${pth:0:1}" != '#' ] && PATH="$PATH:$pth"
1919
done 2>/dev/null
2020

2121
for pth in $(cat /etc/manpaths.d/._* /etc/manpaths /etc/manpaths.d/*); do
2222
[ "${pth:0:1}" != '#' ] && MANPATH="$MANPATH:$pth"
2323
done 2>/dev/null
24+
IFS="$_IFS"
25+
2426
: ${PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin}
2527
: ${MANPATH=/usr/share/man:/usr/local/share/man}
2628

@@ -36,5 +38,4 @@ done
3638

3739
# Now to clean up
3840
unset pth script
39-
IFS="$_IFS"
4041
# End /etc/profile

0 commit comments

Comments
 (0)