Skip to contentSkip to conversation

t0211-trace2-perf.sh: typo patern -> pattern

PATCH Marcel Telka 3 participants 4 messages May 15, 2024

lore
Share & tools
lore
#0 lore raw

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/ |
+-------------------------------------------+
#1 lore raw
Quoted 8 lines · Marcel Telka

Hi,

There seems to be apparent typo in the t/t0211-trace2-perf.sh file:

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-<.

#2 lore raw
Quoted 13 lines · Junio C Hamano
Quoted 11 lines · Marcel Telka

Hi,

There seems to be apparent typo in the t/t0211-trace2-perf.sh file:

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

#3 lore raw
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.sh file:

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 ;-)