From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id 8CTxMNji6mfDgiEAWB0awg (envelope-from ) for ; Mon, 31 Mar 2025 14:45:44 -0400 Received: by simark.ca (Postfix, from userid 112) id C62A61E100; Mon, 31 Mar 2025 14:45:44 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-5.3 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=unavailable 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 72F7B1E0C0 for ; Mon, 31 Mar 2025 14:45:44 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 2068A3865C37 for ; Mon, 31 Mar 2025 18:45:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2068A3865C37 Received: from mail-out.m-online.net (mail-out.m-online.net [212.18.0.9]) by sourceware.org (Postfix) with ESMTPS id BA9ED385695B for ; Mon, 31 Mar 2025 18:45:10 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org BA9ED385695B Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=linux-m68k.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=nefkom.net ARC-Filter: OpenARC Filter v1.0.0 sourceware.org BA9ED385695B Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=212.18.0.9 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1743446710; cv=none; b=yCbVkhy+5WnZvKH8tuZ8yd1E7VvWDneOEqK70vB6shuUr+eP9Mr4FJO6lbV3W2xEcr6gcYwFVReeU1x3P2E5SMFZibOPU6hloNSot8o+Ow2uK1EuNptHQSclgnzPBbU/SAp3kM1V5kCWiyx321t7mg2zaL+3G2t47c94AZh8Mxg= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1743446710; c=relaxed/simple; bh=xt2Ooe0TUvqHhJushjttrq9ws2xfmpE3WTi+oVUvWrE=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=GGTbpJ+h4STFawZBLJjNiDeacUrZEb28srA7d2AX508con33lvUQRE9/2K4RlQkRi90RLboE+OCql7+il7729vg793kaoj6SR1l85F3V9buKYi2zqu8fyeHRTVp7JMKOiZapSXlOKN+RG63sGdjCF6ifwmitDaKGX7kt4x0AaPU= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BA9ED385695B Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4ZRKnK1k55z1r6mY; Mon, 31 Mar 2025 20:45:09 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 4ZRKnJ1cCdz1qqlW; Mon, 31 Mar 2025 20:45:08 +0200 (CEST) X-Virus-Scanned: amavis at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavis, port 10024) with ESMTP id qN_cFqiqi4l6; Mon, 31 Mar 2025 20:44:59 +0200 (CEST) X-Auth-Info: JIHeixr9mYybtd9IjB5kYoqq8C2j5prk0NvhMhEojVInzYWsFYgOt6DNnreoTca7 Received: from igel.home (aftr-82-135-83-225.dynamic.mnet-online.de [82.135.83.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Mon, 31 Mar 2025 20:44:58 +0200 (CEST) Received: by igel.home (Postfix, from userid 1000) id B01072C194B; Mon, 31 Mar 2025 20:44:58 +0200 (CEST) From: Andreas Schwab To: Simon Marchi Cc: Keith Seitz , Sam James , gdb-patches@sourceware.org Subject: Re: [PATCH 1/2] gcore: improve shell use In-Reply-To: (Simon Marchi's message of "Mon, 31 Mar 2025 14:26:01 -0400") References: <6be92d7ddcd426fd79a3fb9f44c49abea6e16aef.1743188332.git.sam@gentoo.org> <944054f1-6a59-4115-8340-95d399b931e2@redhat.com> Date: Mon, 31 Mar 2025 20:44:58 +0200 Message-ID: <87a591vy39.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit 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 Mär 31 2025, Simon Marchi wrote: > I actually can't figure out what this "if" does: > > if [[ "$OPT" = "-" ]]; then > OPT="${OPTARG%%=*}" > OPTARG="${OPTARG#'$OPT'}" > OPTARG="${OPTARG#=}" > fi > > Any idea? I think this is supposed to handle the long options --help and --version. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different."