Bash introduction, bash Vulnerability
Bash is not just a command parsing program. It has a programming language, which allows you to write shell scripts to complete a variety of tasks that cannot be completed by using ready-made commands, bash scripts can use if-then-elif-else-fi statements, for statements, while statements, until statements, break and continue commands, and case statements, combined with various conditional test statements in Bash, the branch and action of your script are dynamically determined to achieve flexible and powerful processing functions.
What is bash shell export?
Export name
Export name = value
Export outputs the variable to the environment.
Briefly introduces the role of export:
When Bash shell executes a program, it first creates a new execution environment for the program, called a subshell.
In Bash Shell, variables are local, and they only make sense in the subshell that creates them.
When export is used, the variable is set as a global variable, which can be recognized by other sub-shells.
What is bash shell export?
Export name
Export name = value
Export outputs the variable to the environment.
Briefly introduces the role of export:
When Bash shell executes a program, it first creates a new execution environment for the program, called a subshell.
In Bash Shell, variables are local, and they only make sense in the subshell that creates them.
When export is used, the variable is set as a global variable, which can be recognized by other sub-shells.