Bash startup

From ym2149.org
Revision as of 15:25, 19 April 2024 by Andrzej (talk | contribs) (Created page with "* there is a system bashrc and a user bashrc * similarly for profiles * system profile includes system bashrc * similarly for user files * neither bashrc proceeds when non-interactive {| class="wikitable" | ! profiles !! bashrcs !! $BASH_ENV |- ! plain | no || no || yes |- ! interactive | no || yes || no |- ! login | yes || no (profiles) || no |- ! interactive login | yes || yes (profiles) || no |} * define BASH_ENV...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
  • there is a system bashrc and a user bashrc
  • similarly for profiles
  • system profile includes system bashrc
  • similarly for user files
  • neither bashrc proceeds when non-interactive
profiles bashrcs $BASH_ENV
plain no no yes
interactive no yes no
login yes no (profiles) no
interactive login yes yes (profiles) no
  • define BASH_ENV in profile
  • source $BASH_ENV in bashrc
  • then all but non-interactive login shell has functions