Looks harmless (-q is in POSIX by the way), but you may want to redirect
the standard output to /dev/null instead (applies to your other rewrites
to "grep -q" as well).
@@ -315,7 +315,7 @@ test_expect_success 'unpacking with --strict' 'head-n10LIST|gitupdate-index--index-info&&LI=$(gitwrite-tree)&&rm-f.git/index&&-tail-n10LIST|gitupdate-index--index-info&&+tail-10LIST|gitupdate-index--index-info&&
I do not know why your "head" apparently accepts -n (see the context) but
not your "tail"; as POSIX frowns upon head/tail -$number, this one is a
regression.
I do not know why you need this one. It shouldn't hurt, though.
Well because it wouldn't work without it. But on the other hand, I
grepped "sed.*\t" through and found many of them. Still wondering
while only this fails. I will look at it again when I have time.
@@ -315,7 +315,7 @@ test_expect_success 'unpacking with --strict' '
head -n 10 LIST | git update-index --index-info &&
LI=$(git write-tree) &&
rm -f .git/index &&
- tail -n 10 LIST | git update-index --index-info &&
+ tail -10 LIST | git update-index --index-info &&
I do not know why your "head" apparently accepts -n (see the context) but
not your "tail"; as POSIX frowns upon head/tail -$number, this one is a
regression.
Hey, it's Sun's magic. head manpage mentions -n and it works (I
checked) while tail does not accept it. GNU tail's manpage does not
mention that it supports [+-]N syntax but it seems to work.
--
Duy
@@ -315,7 +315,7 @@ test_expect_success 'unpacking with --strict' '
head -n 10 LIST | git update-index --index-info &&
LI=$(git write-tree) &&
rm -f .git/index &&
- tail -n 10 LIST | git update-index --index-info &&
+ tail -10 LIST | git update-index --index-info &&
I do not know why your "head" apparently accepts -n (see the context) but
not your "tail"; as POSIX frowns upon head/tail -$number, this one is a
regression.
I digged back in history and found Jeff's b4ce54fc, so my approach is
wrong too. Does it have to be exactly ten last lines? If it's just one
or two lines, then sed -ne '$p' can be used.
--
Duy