On Fri, Feb 22, 2008 at 7:20 AM, Matt Graham <
danceswithcrows@usa.net> wrote:
> From: "Kristian Erik Hermansen" <kristian.hermansen@gmail.com>
>
> > On Thu, Feb 21, 2008 at 10:10 PM, Bob Holtzman <holtzm@sonic.net> wrote:
>
> >> I can use "export <server name> and run my
> >> news reader immediately after with no problem. As soon as I exit the
> >> reader (slrn) and close the xterm window the server name is lost.
>
> >> In RH the variables are in ~/.bashrc but ubuntu doesn't have this file.
> >> There is a ~/.profile file that appears to be the equivalent. Is this
> >> typical of debian based distros?
>
> > Just create it...
> > http://www.tux.org/~mayer/linux/book/node217.html
>
> .profile should be sourced by bash when it's invoked as a login shell.
> .bashrc should be sourced by bash when it's invoked as a non-login shell.
> In general, people want the same behavior in both login and non-login
> bash, so often .profile is one line that just tests whether .bashrc
> exists and sources it if it does. I don't know why they did something
> different in Ubuntu. For info on what bash does at startup and how,
> "man bash" and grep for INVOCATION. HTH,
>
>
Just to be clear to other readers, the only thing different in ubuntu
(and I assume debian) is that .profile is named .bash_profile.
Presumably someone thought it made more sense especially if .profile
was going to source .bashrc
--
Man is the only animal that laughs and weeps, for he is the only
animal that is struck with the difference between what things are and
what they ought to be.
- William Hazlitt
---------------------------------------------------
PLUG-discuss mailing list -
PLUG-discuss@lists.plug.phoenix.az.us
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss