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

Re: [PATCH] Use printf rather than echo -n.

From
Jason Riedy <ejr@eecs.berkeley.edu>
Date
Dec 7, 2005, 03:31 UTC
Message-ID
<21616.1133926303@lotus.CS.Berkeley.EDU>
In-Reply-To
<7vfyp5zmqe.fsf@assigned-by-dhcp.cox.net>
And Junio C Hamano writes:
 - Perhaps printf '%s' "$blah" to futureproof, instead of just
 - saying printf "$blah"?
Definitely more likely to stay correct.  I'm just lazy.
 - <rant mode on>
 - While I do not have anything aginst system without "sane" echo,
 - I really do not like it.  Not your solution, but *having to do*
 - something like that.

Um, you think the wrong one is sane. ;) Why should echo in Bourne shell take C-shell arguments? (I blame AT&T for their crappy licensing.)

Jason
Previous: Junio C Hamano
Message 3 of 3 in “Use printf rather than echo -n.”
  1. Use printf rather than echo -n.Jason Riedy, Dec 6, 2005
  2. Junio C HamanoDec 7, 2005
  3. Jason RiedyDec 7, 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.