Shell environment · Question 12 of 12
A script runs non-interactively, for example from cron with bash /opt/job.sh. Which startup file does bash read?
1 answer is correct. Hard Created with AI
Show answer
Answer
- A None, except the file named in BASH_ENV
Explanation
Non-interactive shells read neither the login files nor ~/.bashrc. Only if BASH_ENV is set does bash read the file named there.