Bash: Using Dot Or "source" Calling Another Script - What Is Difference?


Answer :

The only difference is in portability. . is the POSIX-standard command for executing commands from a file; source is a more-readable synonym provided by bash and some other shells. bash itself, however, makes no distinction between the two.


There is no difference.

From the manual:

source

source filename  A synonym for . (see Bourne Shell Builtins). 

Comments

Popular posts from this blog

Are Regular VACUUM ANALYZE Still Recommended Under 9.1?

Can Feynman Diagrams Be Used To Represent Any Perturbation Theory?