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

Re: [PATCH] Fix use of wc in t0000-basic

From
Daniel Barkalow <barkalow@iabervon.org>
Date
May 21, 2005, 01:16 UTC
Message-ID
<Pine.LNX.4.21.0505202113500.30848-100000@iabervon.org>
In-Reply-To
<4616.10.10.10.24.1116637985.squirrel@linux1>
On Fri, 20 May 2005, Sean wrote:
> Yes, i was.   But presumably someone was stripping the whitespace from wc
> for a reason?   Either way the sed-only solution seems a little cleaner.

Junio was stripping the filename (not whitespace) from wc, not knowing that it could be suppressed by using stdin. This didn't work with versions of wc that put whitespace at the beginning. I think the sed-only solution is far more obscure and no cleaner than cat and wc.

	-Daniel
*This .sig left intentionally blank*
Previous: SeanNext: Junio C Hamano
Message 5 of 10 in “Fix use of wc in t0000-basic”
  1. Fix use of wc in t0000-basicDaniel Barkalow, May 21, 2005
  2. SeanMay 21, 2005
  3. Daniel BarkalowMay 21, 2005
  4. SeanMay 21, 2005
  5. Daniel BarkalowMay 21, 2005
  6. Junio C HamanoMay 21, 2005
  7. Herbert XuMay 21, 2005
  8. Junio C HamanoMay 21, 2005
  9. Herbert XuMay 21, 2005
  10. Junio C HamanoMay 21, 2005

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.