Console/SSH/X: How to tell?

S P Arif Sahari Wibowo arifsaha-/E1597aS9LQAvxtiuMwx3w at public.gmane.org
Tue Jun 23 20:52:42 UTC 2009


On Tue, 23 Jun 2009, Lennart Sorensen wrote:
> According to 'man bash' interactive or not matters just as 
> much.

According here: 
http://www.gnu.org/software/bash/manual/bashref.html#Bash-Startup-Files

The file ~/.bash_profile will be run regardless interactivity if 
it is a login shell.

The file ~/.bashrc should be run only for interactive non-login 
shell.

If it is non-interactive, non-login, then neither profile nor 
bashrc should be run.

-- 
    ____  ____  ____  ____ (stephan paul) Arif Sahari Wibowo
   /___  /___/ /___/ /___      http://www.arifsaha.com/
  ____/ /     /   / ____/
--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists





More information about the Legacy mailing list