Re: [PATCH v4] gdb, configure: Add disable-formats option for configure

Guinevere Larsen
2025-04-08T14:26:38Z

On 4/8/25 11:06 AM, Andreas Schwab wrote:
> On Apr 08 2025, Guinevere Larsen wrote:
>
>> + if ! echo "$enable_binary_file_formats" | grep -wq "$req"; then
> grep -w is not portable.
>
> You can use case ,$enable_binary_file_formats, in *[ ,]$req[ ,]*) ... to
> make it portable.
>
ah, thanks for the heads up, I'll try to fix that up.

The problem is that I want to reverse the case, I want to runt that code
if req is not in enable_binary_file_formats. How would I do that with
the portable syntax?

--
Cheers,
Guinevere Larsen
She/Her/Hers