Content
Data
License: GNU GPLv3 +
Version number: GNU Bash 5
Developer / owner: Free Software Foundation Inc.
Short description:
The manual page and help for the source (built-in Bash command). The source reads and executes the commands from the specified file in the current shell environment and returns the exit status of the last executed command.
Man page output
man bash
[...] . filename [arguments] source filename [arguments] Read and execute commands from filename in the current shell environment and return the exit status of the last command executed from filename. If filename does not contain a slash, filenames in PATH are used to find the directory containing file- name. The file searched for in PATH need not be executable. When bash is not in posix mode, the current directory is searched if no file is found in PATH. If the sourcepath option to the shopt builtin command is turned off, the PATH is not searched. If any arguments are supplied, they become the positional parameters when filename is executed. Otherwise the positional parameters are unchanged. If the -T option is enabled, source inherits any trap on DEBUG; if it is not, any DE- BUG trap string is saved and restored around the call to source, and source unsets the DEBUG trap while it executes. If -T is not set, and the sourced file changes the DEBUG trap, the new value is retained when source completes. The return status is the status of the last command exited within the script (0 if no commands are executed), and false if filename is not found or cannot be read. [...]
Help output
source --help
source: source fájlnév [argumentumok] Parancsok végrehajtása fájlból a futó parancsértelmezőben. A FÁJLNÉV fájlból a parancsok beolvasása és végrehajtása. A fájlnév megtalálásához a $PATH által felsorolt könyvtárakban keres. Az ARGUMENTUMOK pozicionális paraméterek lesznek a FÁJLNÉV végrehajtásakor. Kilépési kód: A FÁJLNÉV utolsó parancsának kilépési kódjával tér vissza; sikertelenül, ha a FÁJLNÉV nem olvasható.
Related Content
- 69 views