Re: t0211-trace2-perf.sh: typo patern -> pattern
- From
Junio C Hamano <gitster@pobox.com>
- Date
- May 15, 2024, 16:52 UTC
- Message-ID
- <xmqqjzjvxbk0.fsf@gitster.g>
- In-Reply-To
- <ZkTIPlTS4jcQ-rHX@telcontar>
Marcel Telka <marcel@telka.sk> writes:
Show 16 quoted lines
> Hi,
>
> There seems to be apparent typo in the t/t0211-trace2-perf.sh file:
>
>
> --- a/t/t0211-trace2-perf.sh
> +++ b/t/t0211-trace2-perf.sh
> @@ -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-<.