Sujet : Re: which file should have my bash prompt, .profile vs .bashrc
De : anton.txt (at) *nospam* g{oogle}mail.com (Anton Shepelev)
Groupes : comp.unix.bsd.freebsd.miscDate : 06. Dec 2024, 11:19:18
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <20241206131918.8a172855cbbedcb9b057723c@g{oogle}mail.com>
References : 1 2
User-Agent : Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32)
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