diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 711b55f6d..1160072fa 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -4,6 +4,92 @@ Xonsh Change Log .. current developments +v0.17.0 +==================== + +**Added:** + +* Added section "Use the Nix Package manager with Xonsh" to "Platform-specific tips and tricks". +* Added ``env.detype_all()`` to get all available variables that is possible to detype. +* Reading stop signals from the process and update the process state (#5361). +* Added support of NixOS core tools in ``predict_threadable``. +* Added catching an exceptions during load a history backend to avoid shell exiting e.g. on permission error. +* Added catching an exception when cache file is not writable. +* Added FuncAlias to process callable aliases. +* Added alias name printing in case of exception in alias. +* Saving history in case of any type of exiting the shell. +* Added catching ChildProcessError in jobs. Avoiding hanging aliases in some cases. +* Added xonsh support into Jupytext project! Jupytext is to store Jupyter notebooks as a plain text documents. +* Now last executed CommandPipeline is available in ``__xonsh__.last``. +* Added ``xonsh --no-env`` option to run xonsh without inheriting the environment variables. Now by running ``xonsh --no-rc --no-env`` you have pure xonsh session. +* Added thread class, name, func and alias names to thread exception for easy understanding the source of issue. +* Added shortcut ``-st`` for ``--shell-type``. +* Saving history on SIGINT. Development tools like PyCharm send SIGINT before killing the run + and doing this is the last chance to save history. +* Added ``spec.raise_subproc_error`` for fine-tuning exceptions via ``SpecModifierAlias`` (#5494). +* Added ``$XONSH_SUBPROC_OUTPUT_FORMAT`` to switch the way to return the output lines. + Default ``stream_lines`` to return text. Alternative ``list_lines`` to return + the list of lines. Now you can run ``du $(ls)`` without additional stripping. + Also supported custom lambda function to process lines (if you're looking for + alternative to bash IFS). +* Added ``xthread`` and ``xunthread`` aliases to force command running as threaded and unthreaded. +* Added ``SpecModifierAlias`` class to have an ability to create alias that modifies spec before run e.g. ``xthread`` alias. +* Added mode ``$XONSH_TRACE_SUBPROC=3`` to show more information about pipeline. +* Added "Callable alias and capturing" to the tutorial. +* Xonfig: show sensitive env variables that could affect the shell behavior. +* We started `Zulip Community `_ to publish news and chatting. + +**Changed:** + +* Minor cleanup of ``commands_cache``, unifying behavior across platforms. +* Xonsh AppImage downgraded to Python 3.11. We need to resolve 3.12 parser support (5166) before upgrade. +* Env variables completion: now use substring for search and then sort results by the position of substring and then alphabetically. PR 5388. +* jobs: default representation changed to dict. +* The CommandPipeline repr will not show descriptors by default. Use XONSH_DEBUG mode to see them. +* Prompt: ``env_name`` will have yellow color by default. +* Show ``root`` and ``@#`` in prompt if user is superuser. +* Cleaning logic and functions around threading and capturing in ``procs/specs.py`` file. +* Now the ending new line symbol ``\n`` will be stripped from the single line output. + For ``$(whoami)`` you will get ``'user'`` instead of ``'user\n'``. +* ``$XONSH_TRACE_SUBPROC=2`` returns more useful details. +* The home based ``~/.xonshrc`` will not be executed in non-interactive mode (#5491). + +**Removed:** + +* No longer is ``.`` implied for running commands on Windows. Instead the behavior is the same across platforms. Windows users will need to prefix ``./`` or ``.\`` to run commands from the current directory (#5476). +* Unpin prompt-toolkit version (#5438). + +**Fixed:** + +* Commands on Windows now honor the case as they appear on the file system (#5469). +* Prevent exception on start up if ``dircolors`` util is wrong. +* Fixed ``Bad file descriptor`` and I/O errors after running callable alias (#5435). +* Fixed showing exception message in some cases. +* Fixed empty stacktrace for CalledProcessError. +* Fixed redirect with python substitution e.g. ``echo 1 > @('/tmp/file')`` is working now. +* Fixed showing alias description using superhelp e.g. ``which?``. +* Fixed ``xonsh -DVAR=VAL`` behavior: initiate env variables before shell initialization. +* Fixed processing exit signals and exceptions (e.g. SIGHUP in #5381) to provide careful exiting with right exit code and TTY cleaning. +* Fixed ``TypeError`` in xoreutils. +* Fixed populating the return code for interrupted process. +* Windows: fixed path to RC file in ``xonfig web``. + +**Authors:** + +* Gil Forsyth +* Noortheen Raja +* anki-code +* pre-commit-ci[bot] +* Peter Ye +* Jason R. Coombs +* dependabot[bot] +* doronz88 +* jyn +* l-no +* amacfie-tc + + + v0.16.0 ==================== diff --git a/news/5477.rst b/news/5477.rst deleted file mode 100644 index 86e1fc72c..000000000 --- a/news/5477.rst +++ /dev/null @@ -1,23 +0,0 @@ -**Added:** - -* - -**Changed:** - -* Minor cleanup of ``commands_cache``, unifying behavior across platforms. - -**Deprecated:** - -* - -**Removed:** - -* No longer is ``.`` implied for running commands on Windows. Instead the behavior is the same across platforms. Windows users will need to prefix ``./`` or ``.\`` to run commands from the current directory (#5476). - -**Fixed:** - -* Commands on Windows now honor the case as they appear on the file system (#5469). - -**Security:** - -* diff --git a/news/appimage_py311.rst b/news/appimage_py311.rst deleted file mode 100644 index 05200fca0..000000000 --- a/news/appimage_py311.rst +++ /dev/null @@ -1,23 +0,0 @@ -**Added:** - -* - -**Changed:** - -* Xonsh AppImage downgraded to Python 3.11. We need to resolve 3.12 parser support (5166) before upgrade. - -**Deprecated:** - -* - -**Removed:** - -* - -**Fixed:** - -* - -**Security:** - -* diff --git a/news/docs_nix.rst b/news/docs_nix.rst deleted file mode 100644 index 7090d2442..000000000 --- a/news/docs_nix.rst +++ /dev/null @@ -1,23 +0,0 @@ -**Added:** - -* Added section "Use the Nix Package manager with Xonsh" to "Platform-specific tips and tricks". - -**Changed:** - -* - -**Deprecated:** - -* - -**Removed:** - -* - -**Fixed:** - -* - -**Security:** - -* diff --git a/news/env_completion.rst b/news/env_completion.rst deleted file mode 100644 index 8492ee4c4..000000000 --- a/news/env_completion.rst +++ /dev/null @@ -1,23 +0,0 @@ -**Added:** - -* - -**Changed:** - -* Env variables completion: now use substring for search and then sort results by the position of substring and then alphabetically. PR 5388. - -**Deprecated:** - -* - -**Removed:** - -* - -**Fixed:** - -* - -**Security:** - -* diff --git a/news/env_detype_all.rst b/news/env_detype_all.rst deleted file mode 100644 index 9af2c8c2c..000000000 --- a/news/env_detype_all.rst +++ /dev/null @@ -1,23 +0,0 @@ -**Added:** - -* Added ``env.detype_all()`` to get all available variables that is possible to detype. - -**Changed:** - -* - -**Deprecated:** - -* - -**Removed:** - -* - -**Fixed:** - -* - -**Security:** - -* diff --git a/news/fix_dircolors.rst b/news/fix_dircolors.rst deleted file mode 100644 index 2675e1f3d..000000000 --- a/news/fix_dircolors.rst +++ /dev/null @@ -1,23 +0,0 @@ -**Added:** - -* - -**Changed:** - -* - -**Deprecated:** - -* - -**Removed:** - -* - -**Fixed:** - -* Prevent exception on start up if ``dircolors`` util is wrong. - -**Security:** - -* diff --git a/news/fix_interactive_suspended_subproc.rst b/news/fix_interactive_suspended_subproc.rst deleted file mode 100644 index a8eaea263..000000000 --- a/news/fix_interactive_suspended_subproc.rst +++ /dev/null @@ -1,23 +0,0 @@ -**Added:** - -* Reading stop signals from the process and update the process state (#5361). - -**Changed:** - -* - -**Deprecated:** - -* - -**Removed:** - -* - -**Fixed:** - -* - -**Security:** - -* diff --git a/news/fix_io.rst b/news/fix_io.rst deleted file mode 100644 index 9260deb88..000000000 --- a/news/fix_io.rst +++ /dev/null @@ -1,23 +0,0 @@ -**Added:** - -* - -**Changed:** - -* - -**Deprecated:** - -* - -**Removed:** - -* - -**Fixed:** - -* Fixed ``Bad file descriptor`` and I/O errors after running callable alias (#5435). - -**Security:** - -* diff --git a/news/fix_nix.rst b/news/fix_nix.rst deleted file mode 100644 index b6de6fd22..000000000 --- a/news/fix_nix.rst +++ /dev/null @@ -1,23 +0,0 @@ -**Added:** - -* Added support of NixOS core tools in ``predict_threadable``. - -**Changed:** - -* - -**Deprecated:** - -* - -**Removed:** - -* - -**Fixed:** - -* - -**Security:** - -* diff --git a/news/fix_noaccess.rst b/news/fix_noaccess.rst deleted file mode 100644 index c6a77ca49..000000000 --- a/news/fix_noaccess.rst +++ /dev/null @@ -1,24 +0,0 @@ -**Added:** - -* Added catching an exceptions during load a history backend to avoid shell exiting e.g. on permission error. -* Added catching an exception when cache file is not writable. - -**Changed:** - -* - -**Deprecated:** - -* - -**Removed:** - -* - -**Fixed:** - -* - -**Security:** - -* diff --git a/news/fix_print_exception.rst b/news/fix_print_exception.rst deleted file mode 100644 index f6a33a048..000000000 --- a/news/fix_print_exception.rst +++ /dev/null @@ -1,23 +0,0 @@ -**Added:** - -* - -**Changed:** - -* - -**Deprecated:** - -* - -**Removed:** - -* - -**Fixed:** - -* Fixed showing exception message in some cases. - -**Security:** - -* diff --git a/news/fix_process_traceback.rst b/news/fix_process_traceback.rst deleted file mode 100644 index 4a2b8fddf..000000000 --- a/news/fix_process_traceback.rst +++ /dev/null @@ -1,23 +0,0 @@ -**Added:** - -* - -**Changed:** - -* - -**Deprecated:** - -* - -**Removed:** - -* - -**Fixed:** - -* Fixed empty stacktrace for CalledProcessError. - -**Security:** - -* diff --git a/news/fix_redir.rst b/news/fix_redir.rst deleted file mode 100644 index 17633337b..000000000 --- a/news/fix_redir.rst +++ /dev/null @@ -1,23 +0,0 @@ -**Added:** - -* - -**Changed:** - -* - -**Deprecated:** - -* - -**Removed:** - -* - -**Fixed:** - -* Fixed redirect with python substitution e.g. ``echo 1 > @('/tmp/file')`` is working now. - -**Security:** - -* diff --git a/news/funcalias.rst b/news/funcalias.rst deleted file mode 100644 index 895388b78..000000000 --- a/news/funcalias.rst +++ /dev/null @@ -1,24 +0,0 @@ -**Added:** - -* Added FuncAlias to process callable aliases. -* Added alias name printing in case of exception in alias. - -**Changed:** - -* - -**Deprecated:** - -* - -**Removed:** - -* - -**Fixed:** - -* Fixed showing alias description using superhelp e.g. ``which?``. - -**Security:** - -* diff --git a/news/history_save_unload.rst b/news/history_save_unload.rst deleted file mode 100644 index be1beacfb..000000000 --- a/news/history_save_unload.rst +++ /dev/null @@ -1,23 +0,0 @@ -**Added:** - -* Saving history in case of any type of exiting the shell. - -**Changed:** - -* - -**Deprecated:** - -* - -**Removed:** - -* - -**Fixed:** - -* - -**Security:** - -* diff --git a/news/jobs_catch_no_process.rst b/news/jobs_catch_no_process.rst deleted file mode 100644 index 5a423ea89..000000000 --- a/news/jobs_catch_no_process.rst +++ /dev/null @@ -1,23 +0,0 @@ -**Added:** - -* Added catching ChildProcessError in jobs. Avoiding hanging aliases in some cases. - -**Changed:** - -* - -**Deprecated:** - -* - -**Removed:** - -* - -**Fixed:** - -* - -**Security:** - -* diff --git a/news/jobs_repr.rst b/news/jobs_repr.rst deleted file mode 100644 index 3a7188382..000000000 --- a/news/jobs_repr.rst +++ /dev/null @@ -1,23 +0,0 @@ -**Added:** - -* - -**Changed:** - -* jobs: default representation changed to dict. - -**Deprecated:** - -* - -**Removed:** - -* - -**Fixed:** - -* - -**Security:** - -* diff --git a/news/jupytext.rst b/news/jupytext.rst deleted file mode 100644 index 4dd8bc1d6..000000000 --- a/news/jupytext.rst +++ /dev/null @@ -1,23 +0,0 @@ -**Added:** - -* Added xonsh support into Jupytext project! Jupytext is to store Jupyter notebooks as a plain text documents. - -**Changed:** - -* - -**Deprecated:** - -* - -**Removed:** - -* - -**Fixed:** - -* - -**Security:** - -* diff --git a/news/last_cp.rst b/news/last_cp.rst deleted file mode 100644 index 70c35d705..000000000 --- a/news/last_cp.rst +++ /dev/null @@ -1,23 +0,0 @@ -**Added:** - -* Now last executed CommandPipeline is available in ``__xonsh__.last``. - -**Changed:** - -* - -**Deprecated:** - -* - -**Removed:** - -* - -**Fixed:** - -* - -**Security:** - -* diff --git a/news/main_d.rst b/news/main_d.rst deleted file mode 100644 index ea5660f9a..000000000 --- a/news/main_d.rst +++ /dev/null @@ -1,23 +0,0 @@ -**Added:** - -* - -**Changed:** - -* - -**Deprecated:** - -* - -**Removed:** - -* - -**Fixed:** - -* Fixed ``xonsh -DVAR=VAL`` behavior: initiate env variables before shell initialization. - -**Security:** - -* diff --git a/news/mini_refactor.rst b/news/mini_refactor.rst deleted file mode 100644 index 7d71d39a0..000000000 --- a/news/mini_refactor.rst +++ /dev/null @@ -1,23 +0,0 @@ -**Added:** - -* - -**Changed:** - -* The CommandPipeline repr will not show descriptors by default. Use XONSH_DEBUG mode to see them. - -**Deprecated:** - -* - -**Removed:** - -* - -**Fixed:** - -* - -**Security:** - -* diff --git a/news/no_env.rst b/news/no_env.rst deleted file mode 100644 index f38989344..000000000 --- a/news/no_env.rst +++ /dev/null @@ -1,23 +0,0 @@ -**Added:** - -* Added ``xonsh --no-env`` option to run xonsh without inheriting the environment variables. Now by running ``xonsh --no-rc --no-env`` you have pure xonsh session. - -**Changed:** - -* - -**Deprecated:** - -* - -**Removed:** - -* - -**Fixed:** - -* - -**Security:** - -* diff --git a/news/popen_name.rst b/news/popen_name.rst deleted file mode 100644 index 02e47470e..000000000 --- a/news/popen_name.rst +++ /dev/null @@ -1,23 +0,0 @@ -**Added:** - -* Added thread class, name, func and alias names to thread exception for easy understanding the source of issue. - -**Changed:** - -* - -**Deprecated:** - -* - -**Removed:** - -* - -**Fixed:** - -* - -**Security:** - -* diff --git a/news/prompt_env_name_yel.rst b/news/prompt_env_name_yel.rst deleted file mode 100644 index 1c06efc1f..000000000 --- a/news/prompt_env_name_yel.rst +++ /dev/null @@ -1,23 +0,0 @@ -**Added:** - -* - -**Changed:** - -* Prompt: ``env_name`` will have yellow color by default. - -**Deprecated:** - -* - -**Removed:** - -* - -**Fixed:** - -* - -**Security:** - -* diff --git a/news/prompt_superuser.rst b/news/prompt_superuser.rst deleted file mode 100644 index f2ad15b88..000000000 --- a/news/prompt_superuser.rst +++ /dev/null @@ -1,23 +0,0 @@ -**Added:** - -* - -**Changed:** - -* Show ``root`` and ``@#`` in prompt if user is superuser. - -**Deprecated:** - -* - -**Removed:** - -* - -**Fixed:** - -* - -**Security:** - -* diff --git a/news/refresh_specs.rst b/news/refresh_specs.rst deleted file mode 100644 index 6139a16bf..000000000 --- a/news/refresh_specs.rst +++ /dev/null @@ -1,23 +0,0 @@ -**Added:** - -* - -**Changed:** - -* Cleaning logic and functions around threading and capturing in ``procs/specs.py`` file. - -**Deprecated:** - -* - -**Removed:** - -* - -**Fixed:** - -* - -**Security:** - -* diff --git a/news/shell_type.rst b/news/shell_type.rst deleted file mode 100644 index 682be35e7..000000000 --- a/news/shell_type.rst +++ /dev/null @@ -1,23 +0,0 @@ -**Added:** - -* Added shortcut ``-st`` for ``--shell-type``. - -**Changed:** - -* - -**Deprecated:** - -* - -**Removed:** - -* - -**Fixed:** - -* - -**Security:** - -* diff --git a/news/sig_exit_fix.rst b/news/sig_exit_fix.rst deleted file mode 100644 index db9c7ee98..000000000 --- a/news/sig_exit_fix.rst +++ /dev/null @@ -1,23 +0,0 @@ -**Added:** - -* - -**Changed:** - -* - -**Deprecated:** - -* - -**Removed:** - -* - -**Fixed:** - -* Fixed processing exit signals and exceptions (e.g. SIGHUP in #5381) to provide careful exiting with right exit code and TTY cleaning. - -**Security:** - -* diff --git a/news/sigint_save_hist.rst b/news/sigint_save_hist.rst deleted file mode 100644 index b0ecd3b81..000000000 --- a/news/sigint_save_hist.rst +++ /dev/null @@ -1,24 +0,0 @@ -**Added:** - -* Saving history on SIGINT. Development tools like PyCharm send SIGINT before killing the run - and doing this is the last chance to save history. - -**Changed:** - -* - -**Deprecated:** - -* - -**Removed:** - -* - -**Fixed:** - -* - -**Security:** - -* diff --git a/news/spec_raise_subproc_error.rst b/news/spec_raise_subproc_error.rst deleted file mode 100644 index 3cc23faae..000000000 --- a/news/spec_raise_subproc_error.rst +++ /dev/null @@ -1,23 +0,0 @@ -**Added:** - -* Added ``spec.raise_subproc_error`` for fine-tuning exceptions via ``SpecModifierAlias`` (#5494). - -**Changed:** - -* - -**Deprecated:** - -* - -**Removed:** - -* - -**Fixed:** - -* - -**Security:** - -* diff --git a/news/subproc_output_format.rst b/news/subproc_output_format.rst deleted file mode 100644 index 9836db7f0..000000000 --- a/news/subproc_output_format.rst +++ /dev/null @@ -1,28 +0,0 @@ -**Added:** - -* Added ``$XONSH_SUBPROC_OUTPUT_FORMAT`` to switch the way to return the output lines. - Default ``stream_lines`` to return text. Alternative ``list_lines`` to return - the list of lines. Now you can run ``du $(ls)`` without additional stripping. - Also supported custom lambda function to process lines (if you're looking for - alternative to bash IFS). - -**Changed:** - -* Now the ending new line symbol ``\n`` will be stripped from the single line output. - For ``$(whoami)`` you will get ``'user'`` instead of ``'user\n'``. - -**Deprecated:** - -* - -**Removed:** - -* - -**Fixed:** - -* - -**Security:** - -* diff --git a/news/thr_unthr.rst b/news/thr_unthr.rst deleted file mode 100644 index 93dfafdf2..000000000 --- a/news/thr_unthr.rst +++ /dev/null @@ -1,24 +0,0 @@ -**Added:** - -* Added ``xthread`` and ``xunthread`` aliases to force command running as threaded and unthreaded. -* Added ``SpecModifierAlias`` class to have an ability to create alias that modifies spec before run e.g. ``xthread`` alias. - -**Changed:** - -* - -**Deprecated:** - -* - -**Removed:** - -* - -**Fixed:** - -* - -**Security:** - -* diff --git a/news/trace3.rst b/news/trace3.rst deleted file mode 100644 index ed5ab0042..000000000 --- a/news/trace3.rst +++ /dev/null @@ -1,23 +0,0 @@ -**Added:** - -* Added mode ``$XONSH_TRACE_SUBPROC=3`` to show more information about pipeline. - -**Changed:** - -* - -**Deprecated:** - -* - -**Removed:** - -* - -**Fixed:** - -* - -**Security:** - -* diff --git a/news/trace_subproc.rst b/news/trace_subproc.rst deleted file mode 100644 index 1988e3ea0..000000000 --- a/news/trace_subproc.rst +++ /dev/null @@ -1,23 +0,0 @@ -**Added:** - -* - -**Changed:** - -* ``$XONSH_TRACE_SUBPROC=2`` returns more useful details. - -**Deprecated:** - -* - -**Removed:** - -* - -**Fixed:** - -* - -**Security:** - -* diff --git a/news/tutorial_callias_capturing.rst b/news/tutorial_callias_capturing.rst deleted file mode 100644 index 160977e24..000000000 --- a/news/tutorial_callias_capturing.rst +++ /dev/null @@ -1,23 +0,0 @@ -**Added:** - -* Added "Callable alias and capturing" to the tutorial. - -**Changed:** - -* - -**Deprecated:** - -* - -**Removed:** - -* - -**Fixed:** - -* - -**Security:** - -* diff --git a/news/typerr.rst b/news/typerr.rst deleted file mode 100644 index 539873651..000000000 --- a/news/typerr.rst +++ /dev/null @@ -1,23 +0,0 @@ -**Added:** - -* - -**Changed:** - -* - -**Deprecated:** - -* - -**Removed:** - -* - -**Fixed:** - -* Fixed ``TypeError`` in xoreutils. - -**Security:** - -* diff --git a/news/unpin_ptk.rst b/news/unpin_ptk.rst deleted file mode 100644 index d1bdbc27f..000000000 --- a/news/unpin_ptk.rst +++ /dev/null @@ -1,23 +0,0 @@ -**Added:** - -* - -**Changed:** - -* - -**Deprecated:** - -* - -**Removed:** - -* Unpin prompt-toolkit version (#5438). - -**Fixed:** - -* - -**Security:** - -* diff --git a/news/waitpid_returncode.rst b/news/waitpid_returncode.rst deleted file mode 100644 index 98566e839..000000000 --- a/news/waitpid_returncode.rst +++ /dev/null @@ -1,23 +0,0 @@ -**Added:** - -* - -**Changed:** - -* - -**Deprecated:** - -* - -**Removed:** - -* - -**Fixed:** - -* Fixed populating the return code for interrupted process. - -**Security:** - -* diff --git a/news/xonfig_env.rst b/news/xonfig_env.rst deleted file mode 100644 index 2eb1a9b8b..000000000 --- a/news/xonfig_env.rst +++ /dev/null @@ -1,23 +0,0 @@ -**Added:** - -* Xonfig: show sensitive env variables that could affect the shell behavior. - -**Changed:** - -* - -**Deprecated:** - -* - -**Removed:** - -* - -**Fixed:** - -* - -**Security:** - -* diff --git a/news/xonshrc.rst b/news/xonshrc.rst deleted file mode 100644 index cbaf63475..000000000 --- a/news/xonshrc.rst +++ /dev/null @@ -1,23 +0,0 @@ -**Added:** - -* - -**Changed:** - -* The home based ``~/.xonshrc`` will not be executed in non-interactive mode (#5491). - -**Deprecated:** - -* - -**Removed:** - -* - -**Fixed:** - -* Windows: fixed path to RC file in ``xonfig web``. - -**Security:** - -* diff --git a/news/zulip.rst b/news/zulip.rst deleted file mode 100644 index 8c304b70a..000000000 --- a/news/zulip.rst +++ /dev/null @@ -1,23 +0,0 @@ -**Added:** - -* We started `Zulip Community `_ to publish news and chatting. - -**Changed:** - -* - -**Deprecated:** - -* - -**Removed:** - -* - -**Fixed:** - -* - -**Security:** - -*