Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.misc > #34926

Re: .bashrc and .profile in CDE (yes that dinosaur)

Subject Re: .bashrc and .profile in CDE (yes that dinosaur)
Newsgroups comp.os.linux.misc
References <t9k0or$9lb$1@gioia.aioe.org> <op.1ok4vqxra3w0dxdave@hodgins.homeip.net> <t9l88a$28shm$1@news.xmission.com> <op.1oll4s0na3w0dxdave@hodgins.homeip.net>
From "25.BZ959" <25BZ959@nada.net>
Date 2022-06-30 20:52 -0400
Message-ID <dN2dnU-iZsPY2CP_nZ2dnUU7-XHNnZ2d@earthlink.com> (permalink)

Show all headers | View raw


On 6/30/22 6:59 PM, David W. Hodgins wrote:
> On Thu, 30 Jun 2022 18:31:38 -0400, Kenny McCormack 
> <gazelle@shell.xmission.com> wrote:
> 
>> In article <op.1ok4vqxra3w0dxdave@hodgins.homeip.net>,
>> David W. Hodgins <dwhodgins@nomail.afraid.org> wrote:
>>> On Thu, 30 Jun 2022 07:17:44 -0400, Percy Walton <wpercy@eklon.co.uk> 
>>> wrote:
>>>
>>>> I was trying out the CDE desktop, which I used back in the 1990s. I
>>>> wanted to test some X11/motif program without the extra layers of 
>>>> modern
>>>> desktops. Things went awry. I figured out that .profile login file is
>>>> used in CDE, but not in contemporary Plasma/LXQT et cetera.
>>>> That is when you login selecting a desktop, and then in that desktop,
>>>> open a console, and type some command in console.
>>>> In CDE, the console is running bash (not ksh, csh or whatever was bog
>>>> standard last century). And it was executing contents of .profile
>>>> as well as .bashrc.
>>>
>>> The ~/.bash_profile or ~/.bash_login or ~/.profile file (the first 
>>> and only
>>> the first of the three that is found) will be sourced/run once during 
>>> the user
>>> login and only for login shells. Either a normal user login or a bash 
>>> session
>>> started with su --login $USER. Opening a konsole or gnome-terminal 
>>> does not
>>> execute the profile script.
>>>
>>> The ~/.bashrc file is sourced in each interactive shell the user 
>>> starts, and
>>> only in interactive shells. It doesn't get sourced in non interactive 
>>> shells
>>> such as those used when running a script.
>>>
>>> If you login to an interactive shell (run level 3 or 
>>> multi-user.target), then
>>> both the profile and .bashrc scripts are sourced/run.
>>
>> What is the point of this response (*) ?
>>
>> (*) Other than to tell us all a bunch of things we already know.
> 
> My impression of Percy's statement was that he did not know those things.


   Exactly. Nobody knows it all and most people know mostly
   NOTHING about Linux/Unix. Most wonder why Word won't
   run on it (for free) ....

   So, be nice.

   I'd totally forgotten about CDE (and there's a variant).
   Now I'm gonna try installing it  :-)

   In any case, if .profile and .bashrc are run then you've
   gotta be careful about what's IN them.

Back to comp.os.linux.misc | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

.bashrc and .profile in CDE (yes that dinosaur) Percy Walton <wpercy@eklon.co.uk> - 2022-06-30 19:17 +0800
  Re: .bashrc and .profile in CDE (yes that dinosaur) gazelle@shell.xmission.com (Kenny McCormack) - 2022-06-30 12:07 +0000
  Re: .bashrc and .profile in CDE (yes that dinosaur) "David W. Hodgins" <dwhodgins@nomail.afraid.org> - 2022-06-30 12:46 -0400
    Re: .bashrc and .profile in CDE (yes that dinosaur) gazelle@shell.xmission.com (Kenny McCormack) - 2022-06-30 22:31 +0000
      Re: .bashrc and .profile in CDE (yes that dinosaur) "David W. Hodgins" <dwhodgins@nomail.afraid.org> - 2022-06-30 18:59 -0400
        Re: .bashrc and .profile in CDE (yes that dinosaur) "25.BZ959" <25BZ959@nada.net> - 2022-06-30 20:52 -0400
          Re: .bashrc and .profile in CDE (yes that dinosaur) "Andrei Z." <no-email@invalid.invalid> - 2022-07-01 06:55 +0300
            Re: .bashrc and .profile in CDE (yes that dinosaur) "25.BZ959" <25BZ959@nada.net> - 2022-07-01 01:43 -0400
              Re: .bashrc and .profile in CDE (yes that dinosaur) Aragorn <thorongil@telenet.be> - 2022-07-01 14:01 +0200
                Re: .bashrc and .profile in CDE (yes that dinosaur) "25.BZ959" <25BZ959@nada.net> - 2022-07-02 02:44 -0400
                Re: .bashrc and .profile in CDE (yes that dinosaur) Stéphane CARPENTIER <sc@fiat-linux.fr> - 2022-07-02 08:45 +0000
                Re: .bashrc and .profile in CDE (yes that dinosaur) Joerg Lorenz <hugybear@gmx.ch> - 2022-07-02 11:38 +0200
                Re: .bashrc and .profile in CDE (yes that dinosaur) "25.BZ959" <25BZ959@nada.net> - 2022-07-02 10:51 -0400
                Re: .bashrc and .profile in CDE (yes that dinosaur) Joerg Lorenz <hugybear@gmx.ch> - 2022-07-03 01:07 +0200
                Re: .bashrc and .profile in CDE (yes that dinosaur) "25.BZ959" <25BZ959@nada.net> - 2022-07-02 20:02 -0400
                Re: .bashrc and .profile in CDE (yes that dinosaur) Stéphane CARPENTIER <sc@fiat-linux.fr> - 2022-07-02 17:29 +0000
                Re: .bashrc and .profile in CDE (yes that dinosaur) Joerg Lorenz <hugybear@gmx.ch> - 2022-07-03 01:12 +0200
                Re: .bashrc and .profile in CDE (yes that dinosaur) "25.BZ959" <25BZ959@nada.net> - 2022-07-02 19:58 -0400
                Re: .bashrc and .profile in CDE (yes that dinosaur) Joerg Lorenz <hugybear@gmx.ch> - 2022-07-02 11:40 +0200
                Re: .bashrc and .profile in CDE (yes that dinosaur) Aragorn <thorongil@telenet.be> - 2022-07-02 16:31 +0200
                Re: .bashrc and .profile in CDE (yes that dinosaur) "25.BZ959" <25BZ959@nada.net> - 2022-07-03 19:18 -0400
            Re: .bashrc and .profile in CDE (yes that dinosaur) "Andrei Z." <no-email@invalid.invalid> - 2022-07-26 08:52 +0300

csiph-web