bug-sh-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: swith user to a bash user


From: Bob Proulx
Subject: Re: swith user to a bash user
Date: Mon, 13 Oct 2003 22:00:26 -0600
User-agent: Mutt/1.3.28i

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]