Merge pull request #3890 from anki-code/patch-17

Docs: Get PID of the current shell.
This commit is contained in:
Anthony Scopatz 2020-10-15 12:54:27 -05:00 committed by GitHub
commit 2c1e7997ec
Failed to generate hash of commit

View file

@ -80,6 +80,9 @@ line is ``#!/usr/bin/env xonsh``.
* - ``||``
- ``||`` as well as ``or``
- Logical-or operator for subprocesses.
* - ``$$``
- ``os.getpid()``
- Get PID of the current shell.
* - ``$?``
- ``_.rtn``
- Returns the exit code, or status, of the previous command. The underscore ``_`` is working
@ -132,4 +135,4 @@ to set :ref:`$XONSH_TRACE_SUBPROC <xonsh_trace_subproc>` to ``True``:
If after time you still try to type ``export``, ``unset`` or ``!!`` commands
there are the `bashisms <https://xon.sh/xontribs.html#bashisms>`_
and `sh <https://xon.sh/xontribs.html#sh>`_ xontribs.
and `sh <https://xon.sh/xontribs.html#sh>`_ xontribs.