What is the difference between Bash and source?

What is the difference between Bash and source?
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