diff --git a/docs/tutorial.rst b/docs/tutorial.rst index 88be20bf9..30cf8a1ea 100644 --- a/docs/tutorial.rst +++ b/docs/tutorial.rst @@ -276,6 +276,11 @@ Running subprocess commands should work like in any other shell. This should feel very natural. +.. note:: + + Access the last run subprocess command using ``__xonsh__.last``; + e.g. to get the return code, run ``__xonsh__.last.rtn``. + Python-mode vs Subprocess-mode ================================ @@ -371,11 +376,6 @@ For example, line characters. You can set ``$XONSH_SUBPROC_OUTPUT_FORMAT`` to ``list_lines`` to have a list of distinct lines in the commands like ``du -h $(ls)``. -.. note:: - - You can access a subprocess command you ran using ``__xonsh__.last`` - e.g. to get the return code run ``__xonsh__.last.rtn``. - The ``!()`` syntax captured more information about the command, as an instance of a class called ``CommandPipeline``. This object contains more information