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

Re: Mini bug report origin/pu: t1512 failed on Mac OS X (commit 957d74062c1f0e ?)

From
Stefano Lattarini <stefano.lattarini@gmail.com>
Date
Jul 13, 2012, 22:43 UTC
Message-ID
<5000A483.4090307@gmail.com>
In-Reply-To
<7va9z5dgff.fsf@alter.siamese.dyndns.org>
On 07/12/2012 01:30 AM, Junio C Hamano wrote:
Show 14 quoted lines
> Junio C Hamano <gitster@pobox.com> writes:
> 
>> I think the other tests in t/ prefer to unquote it so that we would
>> ignore spaces around "wc -l" output, i.e.
>>
>> 	test $(wc -l <actual) = 16
>>
>> Thanks for a report.
> 
> -- >8 --
> Subject: [PATCH] t1512: ignore whitespaces in wc -l output
> 
> Some implementations of sed (e.g. MacOS X)
>
'sed'?  Shouldn't this read 'wc'?
> have whitespaces in the output of "wc -l" that reads from the standard
> input.
>
FYI, the extra space is present with Solaris wc as well:
$ wc -l </dev/null
       0
Regards,
  Stefano
Previous: Junio C HamanoNext: Junio C Hamano
Message 6 of 7 in “Mini bug report origin/pu: t1512 failed on Mac OS X (commit 957d74062c1f0e ?)”
  1. Torsten BögershausenJul 11, 2012
  2. Junio C HamanoJul 11, 2012
  3. Junio C HamanoJul 11, 2012
  4. Johannes SixtJul 12, 2012
  5. Junio C HamanoJul 12, 2012
  6. Stefano LattariniJul 13, 2012
  7. Junio C HamanoJul 13, 2012

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.