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

Writing to err vs std

From
JAJay Asbury <vbjay.net@gmail.com>
Date
Mar 8, 2023, 23:53 UTC
Message-ID
<CAH74SFS3hFzYzJ6eb2YenJh4-Pf_VBzVTo8axnEtHDyaJUB-jw@mail.gmail.com>

I see things like git fetch and other processing writing details to stderr and not std. Can someone point to why this is and what the rule is for determining when to write to err vs std? See 165f390250874b32ed8158150fe49d574297c9f9 for example. Is there a standard in the git project that says write this to err while write that to std? Any guidance and why would be appreciated.

Thanks, Jay Asbury

Next: Junio C Hamano
Message 1 of 4 in “Writing to err vs std”
  1. Jay AsburyMar 8, 2023
  2. Junio C HamanoMar 9, 2023
  3. Jay AsburyMar 9, 2023
  4. Junio C HamanoMar 9, 2023

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.