Global web icon
stackexchange.com
https://unix.stackexchange.com/questions/116584/ba…
bash script error: source: not found - Unix & Linux Stack Exchange
You have an alias which is overriding the builtin source (fix with unalias source) You have a function which is overriding source (fix with unset -f source) You are somehow not using bash (although your bang line would suggest you are). source is not POSIX. Using source on dash does not work, only . works.
Global web icon
stackexchange.com
https://unix.stackexchange.com/questions/79064/how…
How to export variables from a file? - Unix & Linux Stack Exchange
A dangerous one-liner that doesn't require source: export $(xargs <file) It can't handle comments, frequently used in environment files It can't handle values with whitespace, like in the question example It may unintentionally expand glob patterns into files if they match by any chance It's a bit dangerous because it passes the lines through bash expansion, but it has been useful to me when I ...
Global web icon
stackexchange.com
https://unix.stackexchange.com/questions/43882/wha…
shell - What is the difference between sourcing ('.' or 'source') and ...
What is the difference between sourcing ('.' or 'source') and executing a file in bash? Ask Question Asked 13 years, 4 months ago Modified 4 years, 9 months ago
Global web icon
stackexchange.com
https://unix.stackexchange.com/questions/309768/so…
Source vs . why different behaviour? - Unix & Linux Stack Exchange
source is a shell keyword that is supposed to be used like this: source file where file contains valid shell commands. These shell commands will be executed in the current shell as if typed from the command line.
Global web icon
stackexchange.com
https://unix.stackexchange.com/questions/1496/why-…
Why doesn't my Bash script recognize aliases?
In my ~/.bashrc file reside two definitions: commandA, which is an alias to a longer path commandB, which is an alias to a Bash script I want to process the same file with these two commands, so I ...
Global web icon
stackexchange.com
https://unix.stackexchange.com/questions/58514/wha…
What is the difference between '.' and 'source' in shells?
2 source is there for readability and self-documentation, . exists because it is quick to type. The commands are identical. Perl has long and short versions of many of its control variables for the same reason.
Global web icon
stackexchange.com
https://unix.stackexchange.com/questions/152561/wh…
Why does source give an error "cannot execute binary file"
The source command will: Read and execute commands from the filename argument in the current shell context. If filename does not contain a slash, the PATH variable is used to find filename. This behaviour is defined (for ., its alias) by POSIX. Why? Well, you can put sourceable configuration scripts inside PATH and access them without a qualified path. To access the file you want, give an ...
Global web icon
stackexchange.com
https://unix.stackexchange.com/questions/345219/ho…
How to recursively source shell scripts? - Unix & Linux Stack Exchange
It’s a scope problem. As designed, the _source_script function is, effectively, calling itself recursively, inasmuch as it is doing . ./${!arg}.sh and sourcing files that call _source_script. But variables in shell scripts are global by default. And so multiple incarnations of the _source_script function that are active (on the stack) simultaneously, are sharing the same copy of arg. In ...
Global web icon
stackexchange.com
https://unix.stackexchange.com/questions/57305/rsy…
rsync compare directories? - Unix & Linux Stack Exchange
Is it possible to compare two directories with rsync and only print the differences? There's a dry-run option, but when I increase verbosity to a certain level, every file compared is shown. ls -a...
Global web icon
stackexchange.com
https://unix.stackexchange.com/questions/152346/wh…
What is the difference between building from source and using an ...
I.e., unpack the source package from your distribution, replace the source with the upstream version, check if any of the distribution's patches or configuration tweaks still apply, build the binary package (make sure you changed the version of the packaged stuff!) and install that one. Yes, it is more work than just building and installing.