From: Jonathan Nieder Date: Mon, 5 May 2014 23:51:43 +0000 (-0700) Subject: test doc: test_write_lines does not split its arguments X-Git-Tag: v2.1.0-rc0~135^2~2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/bb98b01ee8c5c6f66a6d70aa453b70184dd3d96f?hp=--cc test doc: test_write_lines does not split its arguments test_write_lines carefully quotes its arguments as "$@", so test_write_lines "a b" c writes two lines as requested, not three. Signed-off-by: Jonathan Nieder Signed-off-by: Junio C Hamano --- bb98b01ee8c5c6f66a6d70aa453b70184dd3d96f diff --git a/t/README b/t/README index 2d6232fbd3..8a9d4995f5 100644 --- a/t/README +++ b/t/README @@ -596,15 +596,14 @@ library for your script to use. ... ' - - test_write_lines + - test_write_lines - Split to white-space separated words and write it out on standard - output, one word per line. + Write on standard output, one line per argument. Useful to prepare multi-line files in a compact form. Example: - test_write_lines "a b c d e f g" >foo + test_write_lines a b c d e f g >foo Is a more compact equivalent of: cat >foo <<-EOF