t0211-trace2-perf.sh: typo patern -> pattern
Hi,
There seems to be apparent typo in the t/t0211-trace2-perf.sh file:
t/t0211-trace2-perf.sh +1 -1
@@ -233,7 +233,7 @@ have_counter_event () { pattern="d0|${thread}|${event}||||${category}|name:${name} value:${value}" && - grep "${patern}" ${file} + grep "${pattern}" ${file} } test_expect_success 'global counter test/test1' '
Thanks.
Signature · 4 lines
+-------------------------------------------+ | Marcel Telka e-mail: [email protected] | | homepage: http://telka.sk/ | +-------------------------------------------+
Quoted 8 lines · Marcel Telka
Hi,
There seems to be apparent typo in the
t/t0211-trace2-perf.shfile:
t/t0211-trace2-perf.sh have_counter_event () { · line 239
Quoted 8 lines
t/t0211-trace2-perf.sh +1
-1@@ -233,7 +233,7 @@ have_counter_event () { pattern="d0|${thread}|${event}||||${category}|name:${name} value:${value}" && - grep "${patern}" ${file} + grep "${pattern}" ${file} } test_expect_success 'global counter test/test1' '
Ah, indeed, there is no assignment to the variable $patern so this grep matches by looking for all the empty strings in the file X-<.
Quoted 13 lines · Junio C Hamano
Quoted 11 lines · Marcel Telka
Hi,
There seems to be apparent typo in the
t/t0211-trace2-perf.shfile:t/t0211-trace2-perf.sh +0
-0@@ -233,7 +233,7 @@ have_counter_event () { pattern="d0|${thread}|${event}||||${category}|name:${name} value:${value}" &&
Quoted 10 lines
t/t0211-trace2-perf.sh have_counter_event () { · line 239
Quoted 5 lines
t/t0211-trace2-perf.sh +1
-1- grep "${patern}" ${file} + grep "${pattern}" ${file} } test_expect_success 'global counter test/test1' 'Ah, indeed, there is no assignment to the variable $patern so this grep matches by looking for all the empty strings in the file X-<.
OOPS.
Thanks for the fix.
Jeff
Quoted 21 lines · Jeff Hostetler
Quoted 7 lines · Junio C Hamano
Quoted 5 lines · Marcel Telka
Hi,
There seems to be apparent typo in the
t/t0211-trace2-perf.shfile:Quoted 12 lines
Quoted 9 lines
t/t0211-trace2-perf.sh +0
-0@@ -233,7 +233,7 @@ have_counter_event () { pattern="d0|${thread}|${event}||||${category}|name:${name}value:${value}" &&
- grep "${patern}" ${file}
+ grep "${pattern}" ${file}
}
test_expect_success'global counter test/test1' 'Ah, indeed, there is no assignment to the variable $patern so this grep matches by looking for all the empty strings in the file X-<.
Quoted 3 lines
OOPS.
Thanks for the fix.
Nobody sent an applicable patch yet, though ;-)