diff --git a/CHANGELOG.rst b/CHANGELOG.rst index f771c9428..2eae87dd5 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -19,6 +19,7 @@ Scripting improvements - ``return`` can now be used outside of functions. In scripts it does the same thing as :ref:`exit `, in the commandline it sets ``$status`` without exiting (:issue:`8148`). - An oversight prevented all syntax checks from running on commands given to ``fish -c`` (:issue:`8171`). - ``fish_indent`` now correctly reformats tokens that end with a backslash followed by a newline (:issue:`8197`). +- ``set`` learned a new option ``--function`` to set a variable in the function's top scope. This should be a more familiar way of scoping variables and avoids issues with ``--local``, which is actually block-scoped. (:issue:`565`, :issue:`8145`). Interactive improvements ------------------------