Forum Discussion
Altera_Forum
Honored Contributor
20 years agoThanks, although I might have figured it out.
It turns out I'm starting /bin/sh from the login program and not from inittab. So I had to change the login program to pass a '-' character otherwise /bin/sh won't read from /etc/profile. execl("/bin/sh", "/bin/sh", 0); Became execl("/bin/sh", "-/bin/sh", 0); Now I'm picking up settings in /etc/profile, but it doesn't appear that /bin/sh can handle variables. I've tried $PWD and \w to get a path into the prompt, but neither have worked. Oh well.