[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Startup behaviour regarding files
From: |
Paul Jarc |
Subject: |
Re: Startup behaviour regarding files |
Date: |
20 Feb 2001 12:20:02 -0500 |
User-agent: |
Gnus/5.090001 (Oort Gnus v0.01) Emacs/20.7 |
"Branden" <branden_p6@hotmail.com> writes:
> There's something I believe is a bug in bash, regarding its startup
> files. When bash is started as an interactive login shell, it
> executes /etc/profile and ~/.bash_profile and ~/.bash_login, but it
> doesn't execute ~/.bashrc.
That's not a bug, it's just a choice you don't like. You can work
around it the same way I do: I have only one startup file; my
.bash_profile is a symlink to .bashrc. Then when I have a command
that should only be executed for login shells, I test [ "${0:0:1}" = - ].
paul