summaryrefslogtreecommitdiff
path: root/t/README
diff options
context:
space:
mode:
authorJonathan Nieder <jrnieder@gmail.com>2014-05-05 23:51:43 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-06-10 20:09:05 (GMT)
commitbb98b01ee8c5c6f66a6d70aa453b70184dd3d96f (patch)
treed311dc146813bb71e2fec4e2e4fd6e739b238420 /t/README
parentac9afcc31cd1f7c00c2747132e5f512173613fd9 (diff)
downloadgit-bb98b01ee8c5c6f66a6d70aa453b70184dd3d96f.zip
git-bb98b01ee8c5c6f66a6d70aa453b70184dd3d96f.tar.gz
git-bb98b01ee8c5c6f66a6d70aa453b70184dd3d96f.tar.bz2
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>
Diffstat (limited to 't/README')
-rw-r--r--t/README7
1 files changed, 3 insertions, 4 deletions
diff --git a/t/README b/t/README
index 2d6232f..8a9d499 100644
--- a/t/README
+++ b/t/README
@@ -596,15 +596,14 @@ library for your script to use.
...
'
- - test_write_lines <text>
+ - test_write_lines <lines>
- Split <text> to white-space separated words and write it out on standard
- output, one word per line.
+ Write <lines> 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