Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bash sources profiles #745

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Bash sources profiles #745

wants to merge 1 commit into from

Conversation

docunext
Copy link

@docunext docunext commented Feb 4, 2017

   The following paragraphs describe how bash executes its startup  files.   If  any  of  the
   files  exist  but cannot be read, bash reports an error.  Tildes are expanded in filenames
   as described below under Tilde Expansion in the EXPANSION section.

   When bash is invoked as an interactive login shell, or as a non-interactive shell with the
   --login  option,  it first reads and executes commands from the file /etc/profile, if that
   file exists.  After reading that file, it looks for  ~/.bash_profile,  ~/.bash_login,  and
   ~/.profile,  in that order, and reads and executes commands from the first one that exists
   and is readable.  The --noprofile option may be used when the shell is started to  inhibit
   this behavior.

@grant-humphries
Copy link

I'm not sure this will be reviewed/merged anytime soon, as it seems this project is no longer being actively maintained, but per documentation that you cite above the line:

source /etc/profile

should be removed as well as bash already loads this file when invoked as a login shell.

kenjones-cisco added a commit to kenjones-cisco/babun that referenced this pull request Apr 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants