Altera_Forum
Honored Contributor
20 years agoProblem with /bin/sh profile
Another problem that has been puzzling me lately. I'm running the /bin/sh shell and I can't seem to pick up changes in the /etc/profile file. For referrence, here's the file I'm using (copied from another machine):
-------------------------------------------------------------------------------------# /etc/profile: system-wide .profile file for the Bourne shell (sh(1))# and Bourne compatible shells (bash(1), ksh(1), ash(1), ...). PATH="/usr/local/bin:/usr/bin:/bin" if [ "$PS1" ]; then if [ "$BASH" ]; then PS1='\u@\h:\w\$ ' else if [ "`id -u`" -eq 0 ]; then PS1='whoami# ' else PS1='whoami$ ' fi fi fi export PATH ------------------------------------------------------------------------------------- From what I can tell from messing around with /bin/sh, it doesn't appear to be reading the /etc/profile file. Is this something to do with uKit's uClinux port or something I'm missing? Ultimately, I'd just like to display the path in the prompt, but right now I'd settle for whoami. Thanks.