diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 5dacfeb6f..ed219b6c9 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -32,6 +32,7 @@ Notable improvements and fixes 1 = 2 and echo true or echo false ^ + This includes numbering the index from 1 instead of 0. - The documentation (:issue:`6500`, :issue:`7371`) and Web-based configuration (:issue:`7523`) received a new theme, matching the design on fishshell.com. - ``fish --no-execute`` will no longer complain about unknown commands or non-matching wildcards, as these could be defined differently at @@ -61,6 +62,7 @@ Scripting improvements - The ``true`` and ``false`` builtins ignore any arguments, like other shells (:issue:`7030`). - Computed ("electric") variables such as ``status`` are now only global in scope, so ``set -Uq status`` returns false (:issue:`7032`). - The output for ``set --show`` has been shortened, only mentioning the scopes in which a variable exists (:issue:`6944`). + In addition it now shows if a variable is a path variable. - A new ``fish_posterror`` event is emitted when attempting to execute a command with syntax errors (:issue:`6880`). - ``fish_indent`` now removes unnecessary quotes in simple cases (:issue:`6722`) and learned a ``--check`` option to just check if a file is indented correctly (:issue:`7251`). @@ -83,6 +85,8 @@ Scripting improvements - ``jobs --quiet PID`` no longer prints "no suitable job" if the job for PID does not exist (eg because it has finished) (:issue:`6809`). - ``command``, ``jobs`` and ``type`` builtins support ``--query`` as the long form of ``-q``, matching other builtins. The long form ``--quiet`` is deprecated (:issue:`7276`). - ``argparse`` no longer requires a short flag letter for long-only options (:issue:`7585`) and only prints a backtrace with invalid options to argparse itself (:issue:`6703`). +- ``argparse`` now passes the validation variables (e.g. ``$_flag_value``) as local-exported variables, + avoiding the need for ``--no-scope-shadowing`` in validation functions. - ``complete`` takes the first argument as the name of the command if the ``--command``/``-c`` option is not used (``complete git`` is treated like ``complete --command git``), and can show the loaded completions for specific commands with ``complete COMMANDNAME`` (:issue:`7321`). - ``set_color -b`` (without an argument) no longer prints an error message, matching other invalid invocations of this command (:issue:`7154`). - Functions triggered by the ``fish_exit`` event are correctly run when the terminal is closed or the shell receives SIGHUP (:issue:`7014`). @@ -100,9 +104,13 @@ Scripting improvements - ``math`` learned tau for those wishing to cut down on typing "2 * pi". - ``string`` subcommands now quit early when used with ``--quiet`` (:issue:`7495`). - Failed redirections will now set ``$status`` (:issue:`7540`). +- More consistent $status after errors, including invalid expansions like ``$foo[``. - ``read`` can now read interactively from other files, so e.g. forcing it to read from the terminal via ``read ``). +- The ``set`` completions no longer hide variables starting with ``__``, they are sorted last instead. Deprecations and removed features ---------------------------------