Re: Setting PS1 for ordinary users

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



On Wed, Oct 10, 2012 at 04:12:24PM -0400, James B. Byrne wrote:
> As far as I can see the two invocations call the same program.  And
> yet, replacing /bin/sh with /bin/bash in the ordinary user's passwd
> entry does indeed change the prompt to one identical to that used by
> root.  Does anyone here know why this happens?

Many programs may change behaviour, depending on the name they are
called by.

"man bash"

       --norc Do  not  read  and  execute  the  personal  initialization  file
              ~/.bashrc  if  the  shell  is interactive.  This option is on by
              default if the shell is invoked as sh.


-- 

rgds
Stephen
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux