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

Re: [PATCH] t4027, t4041: Use printf instead of echo -n

From
Johannes Sixt <j6t@kdbg.org>
Date
Jun 24, 2010, 19:34 UTC
Message-ID
<201006242134.54081.j6t@kdbg.org>
In-Reply-To
<1277401578-20984-1-git-send-email-brian@gernhardtsoftware.com>
On Donnerstag, 24. Juni 2010, Brian Gernhardt wrote:
> BSD's echo doesn't recognize the -n option, so use printf instead
...
> -	echo -n "" | test_cmp - actual2 &&
> +	printf "" | test_cmp - actual2 &&
Shouldn't you replace these by
	! test -s actual2 &&
-- Hannes
Previous: Brian GernhardtNext: Brian Gernhardt
Message 2 of 5 in “t4027, t4041: Use printf instead of echo -n”
  1. t4027, t4041: Use printf instead of echo -nBrian Gernhardt, Jun 24, 2010
  2. Johannes SixtJun 24, 2010
  3. t4027,4041: Use test -s to test for an empty fileBrian Gernhardt, Jun 24, 2010
  4. Junio C HamanoJun 24, 2010
  5. Brandon CaseyJun 25, 2010

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.