On Fri, Jun 24, 2022 at 7:28 PM Barry <barry@xxxxxxxxxxxxxxxx> wrote:
On 24 Jun 2022, at 16:36, Roger Heflin <rogerheflin@xxxxxxxxx> wrote:Trick is add this around the path add.If [ $path_add -ne 1 ] ; thenPath addition codePath_add=1FiThat only runs it once.This is a work around for using ,bashrc when .bash_profile is where this should be done.
I think that advice goes back to a time before modern GUI's. Now many users have never
encountered a terminal, and distros vary widely in the use of ~/.bashrc, ~/.bash_profle, and
~/.profile.
On my Fedora 35 box, ~/.bash_profile is:
----------------------------------ser
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
---------------------------
Some distros have complicated ~/.bashrc or `/.bash_profile files with a section devoted to
interactive sessions. This led to issues where users added settings in the wrong section.
I often ask users to run a failing command in a terminal where they may see messages
that their GUI tools hide, but getting different behaviours between GUI and terminal has
become a problem.
George N. White III
_______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure