mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-22 15:18:50 +08:00
CHANGELOG: Move code block where it belongs
This commit is contained in:
parent
3848a68e5c
commit
75d252dadc
|
@ -45,8 +45,7 @@ Scripting improvements
|
|||
- ``return`` can now be used outside of functions. In scripts it does the same thing as :ref:`exit <cmd-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`). This includes checks like e.g. ``exec`` not being allowed in a pipeline and ``$$`` not being a valid variable. Most of these would have triggered an assert or other error before.
|
||||
- ``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`).
|
||||
- ``_`` is now a reserved keyword (:issue:`8342`).::
|
||||
- ``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`)::
|
||||
|
||||
function demonstration
|
||||
if true
|
||||
|
@ -57,6 +56,7 @@ Scripting improvements
|
|||
echo $baz # prints nothing because $baz went out of scope
|
||||
end
|
||||
|
||||
- ``_`` is now a reserved keyword (:issue:`8342`).
|
||||
- ``string pad`` now excludes escape sequences like colors that fish knows about, and a new ``--visible`` flag to ``string length`` makes it use that kind of visible width. This is useful to get the number of terminal cells an already colored string would occupy, like in a prompt. (:issue:`8182`, :issue:`7784`, :issue:`4012`)::
|
||||
|
||||
> string length --visible (set_color red)foo
|
||||
|
|
Loading…
Reference in New Issue
Block a user