Wednesday, 29 November 2023

ubuntu . vs source

https://stackoverflow.com/questions/20094271/using-dot-or-source-while-calling-another-script-what-is-the-difference

 

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.

No comments:

Post a Comment