
bash - What does 'source' do? - Super User
Sep 24, 2009 · One common use for this command is for a shell script to source in a "configuration file" that contains mostly variable assignments. The variable assignments then …
linux - What is the difference between executing a Bash script vs ...
Dec 11, 2009 · Both sourcing and executing the script will run the commands in the script line by line, as if you typed those commands by hand line by line. The differences are: When you …
linux - What is the difference between using `sh` and `source`?
When you call source or . (the one is an alias to the other. source cmd not POSIX - kind of bashism), you load and execute a shell script into the current shell process. So you can read …
How to use source command in shell script? - Super User
Quick answer: source is BASH SHELL BUILTIN command. See man bash (search for " source filename [arguments] " to find it). It doesn't work in question probably because you are using …
linux - What is the difference between source and export ... - Stack ...
Jun 16, 2023 · Using source some_script.sh or . some_script.sh in a Linux shell script is kind of like using import some_module in Python, or #include <some_header_file.h> in C or C++. It …
bash - source command not found in sh shell - Stack Overflow
Dec 4, 2012 · I found in a gnu Makefile on Ubuntu, where /bin/sh -> bash. I needed to use the . command, as well as specify the target script with a ./ prefix (see example below). source did …
bash - Replacement for source in sh - Stack Overflow
Jun 30, 2021 · The dot command '. ' is the equivalent of the C Shell (and Bash) source command. It is specified by POSIX (see dot), and supported by the Bourne and Korn shells (and zsh, I …
linux - How to pass arguments to a script invoked by source …
Sep 29, 2016 · I am invoking a script through source command and want to pass arguments to the script. I have checked man source, the bash returns: : [arguments] No effect; the …
bash - What does the command 'source' do? - Stack Overflow
May 16, 2019 · 8 source is a bash shell built-in command that executes the content of the file passed as an argument, in the current shell. It has a synonym in . (period). Syntax
How to run "source" command (Linux) from a perl script?
Nov 18, 2015 · In bash, etc, source is a builtin that means read this file, and interpret it locally (a little like a #include). In this context that makes no sense - you either need to remove source …