What is the difference between source and bash?

What is the difference between source and bash?
Answer
Bash defined
source as an alias to the dot. This will terminate the current shell and then execute myscript in place of the terminated shell. That means when myscript is done there no shell to return to. exec is powerful but rarely needed.
 

Tìm kiếm

Back
Top