From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firebrick.ash.relay.mailchannels.net (firebrick.ash.relay.mailchannels.net [23.83.222.59]) by sourceware.org (Postfix) with ESMTPS id EFCB73858C53 for ; Wed, 4 May 2022 02:56:55 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org EFCB73858C53 X-Sender-Id: dreamhost|x-authsender|siddhesh@gotplt.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 7709012159D; Wed, 4 May 2022 02:56:51 +0000 (UTC) Received: from pdx1-sub0-mail-a304.dreamhost.com (unknown [127.0.0.6]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 2543D1210CD; Wed, 4 May 2022 02:56:51 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1651633011; a=rsa-sha256; cv=none; b=4M9pj8EXelxpISZH7sj1YQ10KsKocF3O6wfKnigKK18mumekTCqJ6b0Pcmp52/h4VPZqj/ 51PEfku3BG5IKfQLHy/oFWzXgno96yEnTk9SduRRcL3rF4e+5VkceLOSPZAQvFltgEuy9A +I6Dfo7OeU8HJywEemPppsvyV/nX1usn665+EMaV1NjGfvOfF3fXkkmcmo/uJx+5/oJvuj ADlbTukthnqiEGFTr2bB0GKOUrA3NFdsLrn5LrpHZgBXw6R1/SiKt7RNyK3zbLQUP6KC15 dL+yRyKMCUGYTrRPoo11nTymMlCvgi34SpulfIht4+z5jSfXXUWO+K4oHaIBjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1651633011; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=L/xxsxZ6uAHLbDA36nSQSbrj6Dk4BZVM8vktOECCmAo=; b=7OmeLwypPnFgGDK+HKRY7+rP8wyzEOThQSTZPqQVnqLsS9W9nFSX6q50g4yM6WSFBBT7z8 roenU1tnKrBHUk7sn4+O7eMz3Y2JBT+8AGfXmbiqv/HVvX6i6i82lkJHXJthqz7icEnO0H fzIDgFfotilvidSKCe+Z575WvuMFkzXiRueZnvyOoffkSiBRRwup9kEzHiLdPEQW/VfIBD FPaEVW/1Z+qPPaDgfw1xymeySj7MJMKbLuiroHc6I0nczg2uOJ29WYpz7UqMrm/OBd8eWQ BX6kuAKuh2ELpHsA1cN5CEpg228kjDRK9LJ51BK0jHMUVU3DWNymevCs0g6+Yg== ARC-Authentication-Results: i=1; rspamd-fdd564cbf-7gmhm; auth=pass smtp.auth=dreamhost smtp.mailfrom=siddhesh@sourceware.org X-Sender-Id: dreamhost|x-authsender|siddhesh@gotplt.org X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|siddhesh@gotplt.org X-MailChannels-Auth-Id: dreamhost X-Illegal-Lonely: 6c2c186916d97b2b_1651633011379_183913083 X-MC-Loop-Signature: 1651633011379:1825197346 X-MC-Ingress-Time: 1651633011379 Received: from pdx1-sub0-mail-a304.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.120.38.172 (trex/6.7.1); Wed, 04 May 2022 02:56:51 +0000 Received: from [192.168.1.174] (unknown [1.186.223.145]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: siddhesh@gotplt.org) by pdx1-sub0-mail-a304.dreamhost.com (Postfix) with ESMTPSA id 4KtM1F5b2Sz2r; Tue, 3 May 2022 19:56:49 -0700 (PDT) Message-ID: Date: Wed, 4 May 2022 08:26:44 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 Subject: Re: [PATCH] manual: Clarify that abbreviations of long options are allowed Content-Language: en-US To: Andreas Schwab , Siddhesh Poyarekar via Libc-alpha References: <20220503045743.2887439-1-siddhesh@sourceware.org> <87ilqnf4pr.fsf@igel.home> From: Siddhesh Poyarekar In-Reply-To: <87ilqnf4pr.fsf@igel.home> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3494.7 required=5.0 tests=BAYES_00, GIT_PATCH_0, JMQ_SPF_NEUTRAL, KAM_DMARC_NONE, KAM_DMARC_STATUS, NICE_REPLY_A, RCVD_IN_BARRACUDACENTRAL, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_NEUTRAL, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 May 2022 02:56:58 -0000 On 03/05/2022 13:06, Andreas Schwab wrote: > On Mai 03 2022, Siddhesh Poyarekar via Libc-alpha wrote: > >> diff --git a/manual/getopt.texi b/manual/getopt.texi >> index 5485fc4694..e58283ab88 100644 >> --- a/manual/getopt.texi >> +++ b/manual/getopt.texi >> @@ -250,7 +250,8 @@ option, and stores the option's argument (if it has one) in @code{optarg}. >> >> When @code{getopt_long} encounters a long option, it takes actions based >> on the @code{flag} and @code{val} fields of the definition of that >> -option. >> +option. The option name may be abbreviated as long as the abbreviation is >> +unique or is an exact match for some defined option. > > If it's an exact match, it isn't an abbreviation? > So just the following? The option name may be abbreviated as long as the abbreviation is unique. Thanks, Siddhesh