Skip to content

Commit

Permalink
Add warning about pipeline stalling
Browse files Browse the repository at this point in the history
  • Loading branch information
astaric committed Mar 21, 2023
1 parent 83c0506 commit 0d5a340
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/local_commands.rst
Expand Up @@ -99,6 +99,12 @@ using ``|`` (bitwise-or)::
>>> chain()
'-rw-r--r-- 1 sebulba Administ 0 Apr 27 11:54 setup.py\n'

.. note::
Unlike common posix shells, plumbum only captures stderr of the last command in a pipeline.
If any of the other commands writes a large amount of text to the stderr, the whole pipeline
will stall (large amount equals to >64k on posix systems). To avoid this issue, make sure you
discard stderr of the first few commands or redirect it to a file.

.. _guide-local-commands-redir:

Input/Output Redirection
Expand Down

0 comments on commit 0d5a340

Please sign in to comment.