puppet-tilde icon indicating copy to clipboard operation
puppet-tilde copied to clipboard

default /etc/profile should not try to source bash scripts for non-bash shells

Open elly opened this issue 10 years ago • 1 comments

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.

elly avatar Apr 29 '15 05:04 elly

I fixed this specifically on tilde.town by only letting that test file run if BASH is running it; lemme know if that worked.

vilmibm avatar Apr 29 '15 20:04 vilmibm