mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 08:24:40 +01:00
Merge pull request #3890 from anki-code/patch-17
Docs: Get PID of the current shell.
This commit is contained in:
commit
2c1e7997ec
1 changed files with 4 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue