mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-20 10:31:16 -03:00
Document the ! (not) and . (source) aliases more
This commit is contained in:
@@ -10,6 +10,7 @@ Synopsis
|
||||
|
||||
source FILE [ARGUMENTS ...]
|
||||
SOMECOMMAND | source
|
||||
. FILE [ARGUMENTS ...]
|
||||
|
||||
|
||||
Description
|
||||
@@ -23,7 +24,8 @@ If no file is specified and stdin is not the terminal, or if the file name ``-``
|
||||
|
||||
The exit status of ``source`` is the exit status of the last job to execute. If something goes wrong while opening or reading the file, ``source`` exits with a non-zero status.
|
||||
|
||||
**.** (a single period) is an alias for the ``source`` command. The use of **.** is deprecated in favour of ``source``, and **.** will be removed in a future version of fish.
|
||||
Some other shells only support the **.** alias (a single period).
|
||||
The use of **.** is deprecated in favour of ``source``, and **.** will be removed in a future version of fish.
|
||||
|
||||
``source`` creates a new :ref:`local scope<variables-scope>`; ``set --local`` within a sourced block will not affect variables in the enclosing scope.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user