About 50 results
Open links in new tab
  1. What is the difference between "." "./" and "source"?

    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 …

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

  3. 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 2 years ago Modified 2 years ago

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

  5. Source RPM doesn't seem to install on CentOS without warnings

    Source RPMs are quite a bit more portable than binary ones, but unless you are knowledgeable I'd advise against going down this path. Check the CentOS pages, see if there are binary packages …

  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 and breaks the …

  7. How to "source" a specific variable - Unix & Linux Stack Exchange

    Apr 16, 2020 · When you say source and have two files, I am thinking that you are wanting to have the two commands available at the command line and want provider to set the variable for the consumer …

  8. Symlink Source Target confusion - Unix & Linux Stack Exchange

    Oct 27, 2020 · A relevant source of confusion between "source" and "target" is probably the documentation itself. According to POSIX, "target" is the to-be-created link (or the directory links are …

  9. How to source `. filename` reliably? - Unix & Linux Stack Exchange

    Mar 13, 2016 · To avoid shell-dependent effects, pass a full path to .. . /absolute/path/to/script and . relative/path/to/script work in all shells. PATH lookup is rarely useful for sourced scripts anyway. If …

  10. OpenBSD: Where to seek for the source of programs in the base system?

    Jan 20, 2020 · The source code for the OpenBSD base system and the utilities that it contains is available through CVS. How you fetch the source code is described in the OpenBSD FAQ, under the …