Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
test doc: test_write_lines does not split its arguments
author
Jonathan Nieder
<jrnieder@gmail.com>
Mon, 5 May 2014 23:51:43 +0000
(16:51 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Tue, 10 Jun 2014 20:09:05 +0000
(13:09 -0700)
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>
t/README
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
ac9afcc
)
diff --git
a/t/README
b/t/README
index 2d6232fbd37a9a174718ff821986fb1b6e67e92c..8a9d4995f5197f2c841dd1c71107e3045c1790ce 100644
(file)
--- 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