- quote env.d and shrc.d file names
Changed files:
etc/profile -> 1.52
case "$SH" in
bash)
- # currently - nothing
+ # currently - nothing
;;
ksh|pdksh)
PS2='> '
for i in /etc/env.d/* ; do
NAME=${i##*/}
case $NAME in
- *~ | *.bak | *.old | *.rpmnew | *.rpmsave )
+ *~ | *.bak | *.old | *.rpmnew | *.rpmsave | *.zwc )
# nothing
;;
* )
- if [ -r $i ]; then
- . $i; export $NAME
+ if [ -r "$i" ]; then
+ . "$i"; export "$NAME"
fi
;;
esac
# Scripts:
for i in /etc/profile.d/*.sh ; do
- . $i
+ . "$i"
done
unset i