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

Re: [PATCH] t5300-pack-object.sh: portability issue using /usr/bin/stat

From
Nicolas Pitre <nico@cam.org>
Date
Apr 7, 2007, 12:39 UTC
Message-ID
<alpine.LFD.0.98.0704070831140.28181@xanadu.home>
In-Reply-To
<7vabxkhleh.fsf@assigned-by-dhcp.cox.net>
On Fri, 6 Apr 2007, Junio C Hamano wrote:
Show 9 quoted lines
> Nicolas Pitre <nico@cam.org> writes:
> 
> > On Fri, 6 Apr 2007, Junio C Hamano wrote:
> >
> > Well... since this test already depends on wc then why not just use that 
> > instead of adding a perl dependency?
> 
> Because (1) other tests already use Perl; (2) wc -c reads pack
> to find out the size, "-s $file" doesn't AFAIK.

Maybe. But my point is that wc is already used to find file size in other part of the test. So it should at least be consistent. And my patch has the advantage of looking much simpler.

Nicolas
Previous: Junio C HamanoNext: Randal L. Schwartz
Message 5 of 6 in “t5300-pack-object.sh: portability issue using /usr/bin/stat”
  1. t5300-pack-object.sh: portability issue using /usr/bin/statArjen Laarhoven, Apr 6, 2007
  2. Junio C HamanoApr 7, 2007
  3. Nicolas PitreApr 7, 2007
  4. Junio C HamanoApr 7, 2007
  5. Nicolas PitreApr 7, 2007
  6. Randal L. SchwartzApr 7, 2007

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.