puppet-tilde
puppet-tilde copied to clipboard
default /etc/profile should not try to source bash scripts for non-bash shells
Currently:
$ exec ksh --login /etc/profile[26]: .[94]: local: not found [No such file or directory] /etc/profile[26]: .[95]: local: not found [No such file or directory] $
This is because /etc/profile.d/Z99-cloud-locale-test.sh (which comes from the distro) uses 'local', which is a bashism. Probably all these scripts should run only for bash-compatible shells if the distro thinks /bin/sh is /bin/bash anyway.
I fixed this specifically on tilde.town by only letting that test file run if BASH is running it; lemme know if that worked.