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

Re: [PATCH 5/5] MyFirstObjectWalk: add stderr to pipe processing

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 12, 2024, 00:13 UTC
Message-ID
<xmqqh6hcmhmu.fsf@gitster.g>
In-Reply-To
<a2d30eff217e560873c49fe45116c784dc12fd32.1710192973.git.dirk@gouders.net>
Dirk Gouders <dirk@gouders.net> writes:
Show 7 quoted lines
> In the last chapter of this document, pipes are used in commands to
> filter out the first/last trace messages.  But according to git(1),
> trace messages are sent to stderr if GIT_TRACE is set to '1', so those
> commands do not produce the described results.
>
> Fix this by using the operator '|&' to additionally connect stderr to
> stdin of the latter command.
Isn't |& a bash-ism?
    upstream command >&2 | downstream command
is how you would do the same more portably.
Previous: Dirk GoudersNext: Dirk Gouders
Message 8 of 11 in “Fixes for Documentation/MyFirstObjectWalk.txt”
  1. 0/5 Fixes for Documentation/MyFirstObjectWalk.txtDirk Gouders, Mar 11, 2024
  2. 1/5 MyFirstObjectWalk: use additional arg in config_fn_tDirk Gouders, Mar 11, 2024
  3. Junio C HamanoMar 12, 2024
  4. 2/5 MyFirstObjectWalk: fix misspelled "builtins/"Dirk Gouders, Mar 11, 2024
  5. 3/5 MyFirstObjectWalk: fix filtered object walkDirk Gouders, Mar 11, 2024
  6. 4/5 MyFirstObjectWalk: fix description for counting omitted objectsDirk Gouders, Mar 11, 2024
  7. 5/5 MyFirstObjectWalk: add stderr to pipe processingDirk Gouders, Mar 11, 2024
  8. Junio C HamanoMar 12, 2024
  9. Dirk GoudersMar 12, 2024
  10. Junio C HamanoMar 12, 2024
  11. Junio C HamanoMar 12, 2024

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.