What is sourcing a shell script?

What is sourcing a shell script?
Answer
Sourcing a script
will run the commands in the current shell process. Executing a script will run the commands in a new shell process. … This will execute myscript provided that the file is executable and located in the current directory. The leading dot and slash (./) denotes the current directory.
 

Tìm kiếm

Back
Top