From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id yjkDDR4y9WeljysAWB0awg (envelope-from ) for ; Tue, 08 Apr 2025 10:26:38 -0400 Authentication-Results: simark.ca; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=FPWjbS7Y; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 242FC1E0C3; Tue, 8 Apr 2025 10:26:38 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-6.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=4.0.1 Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id BA6311E05C for ; Tue, 8 Apr 2025 10:26:37 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 4E294385B510 for ; Tue, 8 Apr 2025 14:26:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4E294385B510 Authentication-Results: sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=FPWjbS7Y Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTP id AF89E3858D35 for ; Tue, 8 Apr 2025 14:26:05 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org AF89E3858D35 Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org AF89E3858D35 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1744122365; cv=none; b=C4GMyfRtmRjPtNVBxsDBZTuOlUJhfSUakUlZpvNID8uPj5w1ZjlrVauH1IjZI5iNlNYGtgF+uQxpvpPAxgqsy4w1PGxtgNae8uV8LFwPbHjFKeLx+DjCGpNDqN1CKKUTujdpOT+wK+jC+RQMu5lWIzzDcHZWIYMTY+6xa3Ta+mE= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1744122365; c=relaxed/simple; bh=rTOLCmkQ641MAOQrVgitfx7YI+OuPy+InsFaPYtknpA=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=efLHGGF34bXkX0feOxVpbid7iNnV75SkA0LfEC1N9+giiXNvZ7p/17wVB4OJs9pJhhsmYI+7XGmTl7wEOzGbqUdReg7dJtZYWfqBN6l99G3QxPPmt9+GfoNhyeVgvpZbgOtlg03mPw6zms1i0DYeu6UbgNdrp/aYCcDNljQGUzI= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AF89E3858D35 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1744122365; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=jVE0dmoNzI5uD5AD0FBuc87qze8oWQE9HTecmxLfpeo=; b=FPWjbS7YHWDrJo9lwZCVEImc7qaYYWKuNSOW7RvZy+hqwWaEckeMIOfIMKHLQ10QqiRo63 BAAMFi0POutqSYQL/h7EJ+m4+ZBtJAhgMi9LEMtoToGRPzSw55QQUIRweWmreGmheZVvdw D/nUmP2biWqDBCJ7MoVpbI23PbU4vvE= Received: from mail-qv1-f69.google.com (mail-qv1-f69.google.com [209.85.219.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-639-K1TS8_LvO52GFxpy2FmImA-1; Tue, 08 Apr 2025 10:24:28 -0400 X-MC-Unique: K1TS8_LvO52GFxpy2FmImA-1 X-Mimecast-MFC-AGG-ID: K1TS8_LvO52GFxpy2FmImA_1744122267 Received: by mail-qv1-f69.google.com with SMTP id 6a1803df08f44-6e8f64eb467so47497116d6.3 for ; Tue, 08 Apr 2025 07:24:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1744122267; x=1744727067; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=jVE0dmoNzI5uD5AD0FBuc87qze8oWQE9HTecmxLfpeo=; b=vPW/e/+D5xVMF4iJw4MY4hDrj5ENO2fWx8P1NdP9ZuovylWYRlzaRl2/tnCZwWFMRU +xZoDwAod43N6t4kb6pbZeqMV8G/aUZnoynGtELo5bh2YSSodCFh5QmeBEDgeh5L8Tx4 7eIluIRiL3xj5YEBq9VamFQplr73sN/FJS/Gmrs47EH9FPb8r08RFjs8vbZbRTfIgSv3 9fMgL+93IYamQuZP2X6sloRXDKOZfLU3SQk6xvDHU+3vTNnjLvuIOllg7U5UKDfKGJnp XqH9yPpkw6DIgFGLT4UcGjS4klPeZsV+9Gd6AbNtYvab76FnOzp6A5dHVSBU7DkS5KdO OQmQ== X-Gm-Message-State: AOJu0YxjpvUI5+qthD1yyLH/WKsZIjLHlthVmxhneo4RAj1Sd4G6aGPL CdlyHh9xNuFblIGNHl0hClDtiTABXWfLaKQzB85TMaSSd8QO/JUUdoZo60oLUPioJD5LWwYCsuG 2Zid0NKfphq8nGmaVUHyRqFyVJglvl3qiQAkBNkkdeOPpnGWhRjjnc2mjSJQ= X-Gm-Gg: ASbGnct3MMMuznVpLqbmPToYCmKAJ2itXtYF7hUWe1I3FD9dYXDdz7o13OSlzh883dq eAELKfAF0tmnYQ8GPQpEBpd+RZ7F1KDi9DQTiZI5yY+XYYRdXj5emGftlakU70fme1fX8g6KWDm MvPZCnoG6o2TvI85/rMHkBcmcY4pfWEFk43aY2anKU/cY2+1Qsz3YOc+XjvPd3+34AHi5cAZoY7 kEk8Jo8ZuN6eOtOrQecZkE4h2hjpVCZOa1oFrtbKOrA2rKgzsYadM+cNUpPyCBmVEmZoEfSkMf4 Pq9H0dKd7XxKwKrioaO0scZ2+3c= X-Received: by 2002:a05:6214:19ed:b0:6ea:d393:962b with SMTP id 6a1803df08f44-6f05852cdc2mr201456676d6.22.1744122267728; Tue, 08 Apr 2025 07:24:27 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF9J+R2XcBPqyGKRpbD1dFuMWOzkxaFz3xluqVUizy7nAtoALDHWma2J+v76T3r8Q0k+pAfoQ== X-Received: by 2002:a05:6214:19ed:b0:6ea:d393:962b with SMTP id 6a1803df08f44-6f05852cdc2mr201456366d6.22.1744122267394; Tue, 08 Apr 2025 07:24:27 -0700 (PDT) Received: from ?IPV6:2804:14d:8084:9a69::1001? ([2804:14d:8084:9a69::1001]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-6ef0f00e62fsm75651786d6.33.2025.04.08.07.24.26 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 08 Apr 2025 07:24:26 -0700 (PDT) Message-ID: <9af479cd-64c5-456b-a866-1163b394762b@redhat.com> Date: Tue, 8 Apr 2025 11:24:24 -0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4] gdb, configure: Add disable-formats option for configure To: Andreas Schwab Cc: gdb-patches@sourceware.org, Eli Zaretskii References: <20250307115821.1507435-1-guinevere@redhat.com> <20250408134748.2870829-2-guinevere@redhat.com> From: Guinevere Larsen In-Reply-To: X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: Xa9ViVB21QgKe8WVMQYDfNMQ48o0kcFrkzbVZ5uEcPc_1744122267 X-Mimecast-Originator: redhat.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org 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