About 577,000 results
Open links in new tab
  1. 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 …

  2. 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 …

  3. Why can `BASH_SOURCE` be used to obtain the current directory …

    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, …

  4. How to determine the path to a sourced tcsh or bash shell script …

    It looks like BASH_SOURCE is actually an array, so it's better to use its last element, via "${BASH_SOURCE[-1]}", as @gkb0986 explains here and as I show in my brand new answer …

  5. bash - Revert '.' or 'source' - Unix & Linux Stack Exchange

    Mar 17, 2018 · I accidentally sourced the wrong environment from a script. Is there any way to 'unsource' it or in other words to revert it and restore the previous environment? The obvious …

  6. 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 …

  7. Understanding xrandr providers and source - Unix & Linux Stack …

    Sep 7, 2024 · I have a laptop with two GPUs (Intel and nvidia). xrandr --listproviders prints the following: Providers: number : 3 Provider 0: id: 0x217 cap: 0x1, Source Output crtcs: 0 outputs: …

  8. Using export and source commands in bashrc file

    Jan 14, 2022 · I'm running bash in Ubuntu, and I'm trying to run a computational chemistry program called Gaussian 16. My colleague tells me that he is able to run Gaussian 16 by …

  9. Can you use debuild to only apply patches to source and then exit?

    Mar 21, 2025 · GCC’s packaging in Debian is somewhat unusual, and adds a number of targets that aren’t directly supported by general-purpose build tools. So you won’t find a debuild …

  10. 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 …