mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-30 06:03:49 +08:00
"source" to identify itself as a "block" first
Signed-off-by: Osamu Aoki <osamu@debian.org>
This commit is contained in:
parent
3cf6ebc0e1
commit
d7e545d89b
|
@ -15,7 +15,7 @@ Synopsis
|
|||
Description
|
||||
-----------
|
||||
|
||||
``source`` evaluates the commands of the specified file in the current shell. This is different from starting a new process to perform the commands (i.e. ``fish < FILENAME``) since the commands will be evaluated by the current shell, which means that changes in shell variables will affect the current shell. If additional arguments are specified after the file name, they will be inserted into the ``$argv`` variable. The ``$argv`` variable will not include the name of the sourced file.
|
||||
``source`` evaluates the commands of the specified file in the current shell as a new block of code. This is different from starting a new process to perform the commands (i.e. ``fish < FILENAME``) since the commands will be evaluated by the current shell, which means that changes in shell variables will affect the current shell. If additional arguments are specified after the file name, they will be inserted into the ``$argv`` variable. The ``$argv`` variable will not include the name of the sourced file.
|
||||
|
||||
fish will search the working directory to resolve relative paths but will not search ``$PATH``.
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user