I believe that I have a fix committed for this in cloud-init but I'm not able to reproduce this issue other than explicitly running:
$ zsh /etc/profile.d/Z99-cloud-locale-test.sh
/etc/profile.d/Z99-cloud-locale-test.sh
locale_warn:13: * not found
Ie, it doesn't seem to me that the /etc/profile.d scripts are executed if I just change my shell to zsh by:
sudo usermod --shell=/bin/zsh $(whoami)
I believe that I have a fix committed for this in cloud-init but I'm not able to reproduce this issue other than explicitly running: d/Z99-cloud- locale- test.sh d/Z99-cloud- locale- test.sh
$ zsh /etc/profile.
/etc/profile.
locale_warn:13: * not found
Ie, it doesn't seem to me that the /etc/profile.d scripts are executed if I just change my shell to zsh by:
sudo usermod --shell=/bin/zsh $(whoami)
How were you seeing this?