Deutsch   English   Français   Italiano  
<20241206131918.8a172855cbbedcb9b057723c@g{oogle}mail.com>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Anton Shepelev <anton.txt@g{oogle}mail.com>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: which file should have my bash prompt, .profile vs .bashrc
Date: Fri, 6 Dec 2024 13:19:18 +0300
Organization: A noiseless patient Spider
Lines: 22
Message-ID: <20241206131918.8a172855cbbedcb9b057723c@g{oogle}mail.com>
References: <874j3ml3q8.fsf@example.com>
	<44frn5lbsv.fsf@be-well.ilk.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 06 Dec 2024 11:19:19 +0100 (CET)
Injection-Info: dont-email.me; posting-host="ccd74cc16cbed7850052930e8eeef166";
	logging-data="2400845"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1+eb6vDrDBd1/BG/eAzqFySygpqd2/M8bE="
Cancel-Lock: sha1:o7jbeHevBnPA+0Kcjt44PENbINs=
X-Newsreader: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32)
Bytes: 1766

Lowell Gilbert:

> How you do this depends on how you use your shells. There
> are "interactive" shells, and "login" shells

In general, there are /four/ modes of shell:

      interactive     login
      interactive non-login
  non-interactive     login
  non-interactive non-login

Which .profile and .rc files are read when is usually
described in the manual for the shell, and I agree with
Wolfgang that the separation of initialisatio between
..profile and .rc scripts is not always clear and sufficient,
so that one has often to add conditional logic and invoke
one from the other.

-- 
()  ascii ribbon campaign -- against html e-mail
/\  www.asciiribbon.org   -- against proprietary attachments