git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH tig 1/2] Document how to use pipes and redirection with 'bind'

From
WSWolfram Sang <wsa@kernel.org>
Date
May 2, 2020, 18:41 UTC
Message-ID
<20200502184152.26550-1-wsa@kernel.org>

When my bind command using a pipe did not work, I grepped through the docs for 'pipe' and 'redirection' with no results. Only after I found out in the issues tracker that it was intentional, then I noticed the solution in the examples, too.

Add a paragraph to make it more explicit.
Signed-off-by: Wolfram Sang <wsa@kernel.org>
---
 doc/tigrc.5.adoc | 3 +++
 1 file changed, 3 insertions(+)
diff --git a/doc/tigrc.5.adoc b/doc/tigrc.5.adoc
index 630e8f6..1aa8085 100644
--- a/doc/tigrc.5.adoc
+++ b/doc/tigrc.5.adoc
@@ -690,6 +690,9 @@ console output shown (as if '!' was specified). When multiple command options
 are specified their behavior are combined, e.g. "?<git commit" will prompt the
 user whether to execute the command and will exit Tig after completion.
 
+Note that if you want to use pipes or redirection in your commands then you
+must run them in a subshell, i.e. embed your commands in `sh -c '<commands>'`.
+
 Browsing state variables
 ^^^^^^^^^^^^^^^^^^^^^^^^
 
-- 
2.20.1
Next: Wolfram Sang
Message 1 of 2 in “Document how to use pipes and redirection with 'bind'”
  1. 1/2 Document how to use pipes and redirection with 'bind'Wolfram Sang, May 2, 2020
  2. 2/2 Drop unneeded '!' in docsWolfram Sang, May 2, 2020

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.