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

Re: [PATCH 3/4] t4014: do not uese echo -n

From
Junio C Hamano <gitster@pobox.com>
Date
Jan 2, 2013, 01:16 UTC
Message-ID
<7vwqvw5qpg.fsf@alter.siamese.dyndns.org>
In-Reply-To
<201301012241.17050.tboegi@web.de>
Torsten Bögershausen <tboegi@web.de> writes:
Show 5 quoted lines
> echo -n is not portable on all systems.
> Use printf instead
>
> Signed-off-by: Torsten Bögershausen <tboegi@web.de>
> ---

Brandon, this comes from 932581b (Unify appending signoff in format-patch, commit and sequencer, 2012-11-25). Please make sure to squash it in when you reroll the series.

Thanks (and a happy new year ;-).
Show 16 quoted lines
>  t/t4014-format-patch.sh | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/t/t4014-format-patch.sh b/t/t4014-format-patch.sh
> index 6cfad13..f460930 100755
> --- a/t/t4014-format-patch.sh
> +++ b/t/t4014-format-patch.sh
> @@ -993,7 +993,7 @@ EOF
>  '
>  
>  test_expect_success 'signoff: commit with only subject that does not end with NL' '
> -	echo -n subject | append_signoff >actual &&
> +	printf subject | append_signoff >actual &&
>  	cat >expected <<\EOF &&
>  4:Subject: [PATCH] subject
>  8:
Previous: Torsten BögershausenNext: Brandon Casey
Message 2 of 3 in “t4014: do not uese echo -n”
  1. 3/4 t4014: do not uese echo -nTorsten Bögershausen, Jan 1, 2013
  2. Junio C HamanoJan 2, 2013
  3. Brandon CaseyJan 2, 2013

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.