Fixes to /etc/profile.d mechanism
With SHELL=/bin/zsh and no *.sh files in /etc/profile.d, execution of /etc/profile produces a warning:
/etc/profile:8: no matches found: /etc/profile.d/*.sh
Moreover, alpine-baselayout installs /etc/profile.d/color_prompt which breaks the implied assumption that /etc/profile.d should contain files ending in *.sh.
When alpine-baselayout is fixed then /etc/profile can be adjusted to zsh by changing the for loop to something like that:
if [ `ls -A1 /etc/profile.d/ | wc -l` -gt 0 ]; then
for script in /etc/profile.d/*.sh; do
if [ -r $script ]; then
. $script
fi
done
fi
(from redmine: issue id 2289, created on 2013-10-21, closed on 2013-10-31)
- Changesets:
- Revision 4f46a13f by Natanael Copa on 2013-10-28T14:19:33Z:
main/alpine-baselayout: add comment to color_prompt
We tell that it needs to be renamed to be enabled.
ref #2289
- Revision df455ba2 by Natanael Copa on 2013-10-28T14:34:10Z:
main/zsh: ship a separate zprofile for zsh
fixes #2289