$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 是一个 支持 $BASH_ENV 的 Bash 集成开发工具 – 马上试用
© 2020–2024 Joachim Ansorg
声明
隐私政策
许可条款