mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 16:34:47 +01:00
fix rst
This commit is contained in:
parent
c2b7e50d45
commit
d672567e16
1 changed files with 2 additions and 2 deletions
|
@ -394,13 +394,11 @@ separated by comma. Based on the type of each part different
|
||||||
filtering can be achieved,
|
filtering can be achieved,
|
||||||
|
|
||||||
for the command part:
|
for the command part:
|
||||||
|
|
||||||
- an int returns the command in that position.
|
- an int returns the command in that position.
|
||||||
- a slice returns a list of commands.
|
- a slice returns a list of commands.
|
||||||
- a string returns the most recent command containing the string.
|
- a string returns the most recent command containing the string.
|
||||||
|
|
||||||
for the argument part:
|
for the argument part:
|
||||||
|
|
||||||
- an int returns the argument of the command in that position.
|
- an int returns the argument of the command in that position.
|
||||||
- a slice returns a part of the command based on the argument
|
- a slice returns a part of the command based on the argument
|
||||||
position.
|
position.
|
||||||
|
@ -413,6 +411,8 @@ Command arguments are separated by white space.
|
||||||
If the filtering produces only one result it is
|
If the filtering produces only one result it is
|
||||||
returned as a string else a list of strings is returned.
|
returned as a string else a list of strings is returned.
|
||||||
|
|
||||||
|
examples:
|
||||||
|
|
||||||
.. code-block:: xonshcon
|
.. code-block:: xonshcon
|
||||||
|
|
||||||
>>> echo mkdir with/a/huge/name/
|
>>> echo mkdir with/a/huge/name/
|
||||||
|
|
Loading…
Add table
Reference in a new issue