$BASH_ENV  –  Path to Startup File

If $BASH_ENV is defined when Bash executes a script, then it’s expanded and used as the name of Bash’s startup file.

Examples

Define a startup script
1
2
3
echo 'echo startup' > startup.sh
echo 'echo script' > script.sh
BASH_ENV=./startup.sh bash ./script.sh
BashSupport Pro ist eine Bash IDE mit Unterstützung für $BASH_ENVprobieren Sie es aus!
© 2020–2024 Joachim Ansorg
Impressum
Datenschutz
Rechtliches