Skip to content

Commit

Permalink
docs: source creates a new local scope
Browse files Browse the repository at this point in the history
Discussed in #4443.
  • Loading branch information
zanchey committed Sep 17, 2019
1 parent d903fe6 commit 2f6c8fb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sphinx_doc_src/cmds/source.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ The return status of ``source`` is the return status of the last job to execute.

``.`` (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.

``source`` creates a new :ref:`local scope<variables-scope>`; ``set --local`` within a sourced block will not affect variables in the enclosing scope.


Example
-------
Expand Down

0 comments on commit 2f6c8fb

Please sign in to comment.