Subject: Re: [PATCH net] selftests: net: lib: Fix jq parsing error

From: Petr Machata <[email-masked]>
Date: Thu, 12 Feb 2026 10:51:15 +0100

Yue Haibing <[email-masked]> writes:

> On 2026/2/12 0:01, Petr Machata wrote:
>> 
>> Yue Haibing <[email-masked]> writes:
>> 
>>> ++ jq --arg flag UP 'any(.[].flags.[]; . == $flag)'
>>> jq: error: syntax error, unexpected '[', expecting FORMAT or QQSTRING_START
>>>  (Unix shell quoting issues?) at <top-level>, line 1:
>>> any(.[].flags.[]; . == $flag)
>>> jq: 1 compile error
>>>
>>> Remove the extra dot (.) after flags array to fix this.
>> 
>> Interesting, both work for me on 1.7.1. What jq version do you use?
>
> I run this on Ubuntu 23.04,
> jq - commandline JSON processor [version 1.6]

Hmm, I see, 1.6 doesn't seem to have accepted the syntax.
Thanks for the fix!