This commit is contained in:
Konstantinos Tsakiltzidis 2016-09-02 13:40:19 +03:00 committed by GitHub
parent c2b7e50d45
commit d672567e16

View file

@ -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/