In Bash, shell_variable=value bash child_command makes the shell_variable an environment variable in the child_command.
Is this a build-in shell (sh and bash) feature to promote a shell variable to an environment variable in a child process, and functions like env command?
Trying to find out a documentation explaining this but could not find yet. Appreciate if you could provide a reference.
env | grep BUILD_ID
BUILD_ID=hoge bash hoge.sh [result] (none displayed)
BUILD_ID=hoge bash hoge.sh [Result] BUILD_ID=hoge
env BUILD_ID=hogehoge bash hoge.sh [Result] BUILD_ID=hogehoge