On Saturday 18 May 2002 11:52, USM Bish wrote:
> Entry in .bash_profile is adequate to get PS1 output under bash.

Of course not. Entry in .bash_profile is adequate to get PS1 set
under bash, provided it is run as the user's login shell. Otherwise,
one needs the entry in .bashrc.

> My assessment is that you may have  entered the default shell of
> logu as /bin/sh and not /bin/bash. PATH, HOME &  SHELL variables
> cannot be set from the command line, and  should be  entered  at
> the time the user is created, and placed in /etc/passwd.

What is this, then??
binand@laptop1[~]:(1) echo $HOME
/home/binand
binand@laptop1[~]:(2) HOME=/tmp; export HOME
binand@laptop1[/home/binand]:(3) cd ~
binand@laptop1[~]:(4) pwd
/tmp

Similarly for PATH and SHELL.

IMO, the OP has just discovered the difference between a login shell and
an interactive shell. He probably ran su logu and su - logu, and observed
a difference in his PS1 settings.

Binand


_______________________________________________________________
Hundreds of nodes, one monster rendering program.
Now that's a super model! Visit http://clustering.foundries.sf.net/

_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to