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.
More Related Contents:
- Propagate all arguments in a bash shell script
- How to put a line comment for a multi-line command [duplicate]
- How to get Maven project version to the bash command line
- Recursively rename files using find and sed
- Batch renaming files with Bash
- How to generate random number in Bash?
- In bash, how do I bind a function key to a command?
- bash variable interpolation separate variables by a hyphen or underscore
- Check if all of multiple strings or regexes exist in a file
- Get the date (a day before current time) in Bash
- How to cd into a directory with space in the name?
- Convert Unix timestamp to a date string
- Extract version number from a string
- Difference between wait and sleep
- How to get the first line of a file in a bash script?
- Save file to specific folder with curl command
- Assign output to variable in Bash [duplicate]
- How does one change the language of the command line interface of Git?
- find difference between two text files with one item per line [duplicate]
- How to get the nth positional argument in bash?
- Can I use sed to manipulate a variable in bash?
- Reading null delimited strings through a Bash loop
- Using grep to search for hex strings in a file
- Is there a way to get my emacs to recognize my bash aliases and custom functions when I run a shell command?
- How to detect if a Node.js script is running through a shell pipe?
- How can I execute a bash function using sudo?
- Bash: warning: here-document at line delimited by end-of-file (wanted `EOF’) [duplicate]
- Using a variable’s value as password for scp, ssh etc. instead of prompting for user input every time
- How to check if gcc has failed, returned a warning, or succeeded in Bash?
- How to set uid and gid in Docker Compose?