Thread (3 messages) flat view 3 messages, 3 authors, 2016-06-15

Re: [PATCH 2/5] t4211: demonstrate empty -L range crash

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:58:14

SZEDER Gábor [off-list ref] writes:
You could avoid the 'cat' here and patch in 4/5 by doing $(wc -l <b.c).
Correct.
(Side question: the test suite is full with similar constructs, i.e.
redirecting file contents to stdin, but why not just use wc -l b.c,
i.e. let wc open the file?)
"wc -l <b.c" is the correct form for the purpose of these tests;
otherwise you will see the filename in the output, and you need to
somehow strip it if you are only interested in the line count.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help