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 <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Jonathan Nieder committed
May 5, 2014 at 16:51 UTC
bb98b01ee8c5c6f66a6d70aa453b70184dd3d96f
1 file changed
+3
-4
t/README
+3
-4
@@ -596,15 +596,14 @@ library for your script to use.
596
...
597
'
598
599
- - test_write_lines <text>
599
+ - test_write_lines <lines>
600
601
- Split <text> to white-space separated words and write it out on standard
602
- output, one word per line.
601
+ Write <lines> on standard output, one line per argument.
602
Useful to prepare multi-line files in a compact form.
603
604
Example:
605
607
- test_write_lines "a b c d e f g" >foo
606
+ test_write_lines a b c d e f g >foo
607
608
Is a more compact equivalent of:
609
cat >foo <<-EOF