Skip to main content
The 2024 Developer Survey results are live! See the results
4 events
when toggle format what by license comment
Sep 17, 2021 at 2:05 review Suggested edits
Sep 17, 2021 at 10:55
Jun 14, 2021 at 10:05 comment added Dr Krishnakumar Gopalakrishnan @RichHomolka ` It (~/.bashrc) is run on every bash script run` is untrue. By default, ~/.bashrc is invoked only for interactive non-login shells, and therefore, will not be sourced in a script.
Sep 2, 2010 at 17:57 comment added Rich Homolka Slight updates: 'Executed' is probably a slightly misleading term, they're both sourced. Executed sounds like it's run as a script, fork/exec yadda yadda. It's run in the context of the current shell More importantly, .bashrc is run much more often. It is run on every bash script run, and also if you don't have a .bash_profile. Also, depending how you set up your xterms, you may create a shell that sources .bash_profile
Sep 2, 2010 at 14:54 history answered Jarvin CC BY-SA 2.5