
What is the difference between "." "./" and "source"? [duplicate]
Sep 27, 2016 · When the script is done, any changes that it made to the environment are discarded. . script The above sources the script. It is as if the commands had been typed in directly. Any …
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 …
If "bash <file>" works, why is "source <file>" throwing an error?
Jun 21, 2016 · However, when you source something, it is run in your current shell which, because it is interactive, has already loaded the aliases and therefore the fi alias is recognized and breaks the …
How to automatically source your bashrc file when you become a root ...
Mar 7, 2024 · How to automatically source your bashrc file when you become a root user [duplicate] Ask Question Asked 1 year, 11 months ago Modified 1 year, 11 months ago
Why can `BASH_SOURCE` be used to obtain the current directory of the ...
Jul 30, 2020 · I've read that BASH_SOURCE should be populated with the name of the executing script (and it works!). But why does BASH_SOURCE hold the name of the executing script, when it is …
How to list packages that have been installed from source in Linux ...
Oct 9, 2023 · 1 I usually use package managers like apt to install packages and then use dpkg to list the packages, that I have installed. Is there any way to get a similar list if I install from source? I saw an …
100% open source linux distro - Unix & Linux Stack Exchange
Feb 23, 2014 · Do 100% open source linux distro's exist? i.e. distros which contain absolutely no closed source components anywhere at all? Apparently distros like Ubuntu contains bits and pieces which …
Copy file to same path as source without changing directories
Aug 7, 2022 · For example if you started typing or copy/pasting the source path including filename, and only after that you realize you want the copy to be in that directory, ctrl-left-arrow to move the cursor …
How can I "source" expect script - Unix & Linux Stack Exchange
Jan 24, 2019 · The fundamental problem is that a child process cannot alter the environment of its parent. This is why you need to source that shell script, so the environment variables will persist in …
How can I source a bash script containing BASH_SOURCE from zsh
Nov 1, 2018 · I need to source it from a zsh shell as I need to have all the environment variables it defines. , where it is the Bash script. The fact that the script uses BASH_SOURCE is actually …