This is getting pretty off topic for sh-utils. You really have a bash question instead of a shellutils question.
Nicola Lodato wrote: > When user test has bash shell, then > #su - test -c 'echo $ODSRELEASE' > and > #su - test -c "echo \$ODSRELEASE" > don't return any value. That would say that ODSRELEASE does not have any value. Which leads me to believe it is not set in a .profile file. > If I turn the shell to ksh, then: > #su - test -c 'echo $ODSRELEASE' > return: > Sun Microsystems Inc. SunOS 5.8 Generic February 2000 > /some/dir/ > > then it appears that the .profile is not read. What does this say for you? su - test -c 'echo $SHELL' # /bin/bash ??? su - test -c 'echo $0' # -su ??? I think there is something simple which is not getting set up for you. Something like the permissions on the file is not readable or some such thing. Double check everything. It works for me. Beyond this you will need to apply for help from the bash folks. http://www.gnu.org/software/bash/ Bob _______________________________________________ Bug-sh-utils mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-sh-utils
