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

Re: [PATCH] Replace "echo -n" with printf in shell scripts.

From
Brian Gernhardt <benji@silverinsanity.com>
Date
Jan 17, 2007, 18:00 UTC
Message-ID
<F850C6F1-EFDC-4D37-90B4-27D8982BA086@silverinsanity.com>
In-Reply-To
<7vk5zlsglk.fsf@assigned-by-dhcp.cox.net>
On Jan 17, 2007, at 12:33 PM, Junio C Hamano wrote:
> The problematic are less common ones, ranging from (not so less
> common) OSX, Solaris to (much less common) AIX that some people
> seem to run git on (or at least compile git for).

At least as far a OS X goes, it's installed on my machine (10.4.8) as /usr/bin/printf. I don't know if it's part of the Xcode packages, the "BSD Subsystem", or the core OS but I have a hard time imagining someone who didn't have them all installed using GIT.

Also, it's man page identifies itself as "PRINTF(1) BSD General Commands Manual PRINTF(1)" so most, if not all, flavors of BSD and BSD-like should be alright.

~~ Brian
Previous: Junio C HamanoNext: Julian Phillips
Message 7 of 11 in “Replace "echo -n" with printf in shell scripts.”
  1. Replace "echo -n" with printf in shell scripts.Jason Riedy, Jan 16, 2007
  2. Junio C HamanoJan 16, 2007
  3. Jason RiedyJan 16, 2007
  4. Eric BlakeJan 16, 2007
  5. Horst H. von BrandJan 17, 2007
  6. Junio C HamanoJan 17, 2007
  7. Brian GernhardtJan 17, 2007
  8. Julian PhillipsJan 17, 2007
  9. Horst H. von BrandJan 17, 2007
  10. Simon 'corecode' SchubertJan 18, 2007
  11. Junio C HamanoJan 18, 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.