From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id NdSuEE2Oq2GZ6gAAgWs5BA (envelope-from ) for ; Sat, 04 Dec 2021 16:50:37 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id KA59C02Oq2FJLgAAbx9fmQ (envelope-from ) for ; Sat, 04 Dec 2021 15:50:37 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [IPv6:2607:5300:201:3100::1657]) (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 aspmx1.migadu.com (Postfix) with ESMTPS id F2D9636FBD for ; Sat, 4 Dec 2021 16:50:36 +0100 (CET) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 0E6432907A; Sat, 4 Dec 2021 10:50:32 -0500 (EST) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by mail.notmuchmail.org (Postfix) with ESMTP id EF87D29024 for ; Sat, 4 Dec 2021 10:50:28 -0500 (EST) Received: by fethera.tethera.net (Postfix, from userid 1001) id C6D9F5FC42; Sat, 4 Dec 2021 10:50:28 -0500 (EST) Received: (nullmailer pid 77186 invoked by uid 1000); Sat, 04 Dec 2021 15:50:27 -0000 From: David Bremner To: notmuch@notmuchmail.org Subject: Re: [PATCH] cli: handle bash completion of all shared options In-Reply-To: <20210426181220.1097563-1-omgitsaheadcrab@gmail.com> References: <20210426181220.1097563-1-omgitsaheadcrab@gmail.com> Date: Sat, 04 Dec 2021 11:50:27 -0400 Message-ID: <87v904s724.fsf@tethera.net> MIME-Version: 1.0 Message-ID-Hash: 23IAF4TAB47WHJ2X3RPKODDMQC7RCMUV X-Message-ID-Hash: 23IAF4TAB47WHJ2X3RPKODDMQC7RCMUV X-MailFrom: david@tethera.net X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.3 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN X-Migadu-Country: FR ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1638633037; 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:list-id:list-help: list-owner:list-unsubscribe:list-subscribe:list-post; bh=nxzZ+R1oD6/gGVDpikVQaNZG6DcWE/t+KDsP2HKJe+g=; b=hKB5rYRa8rSFgx1Ig51amXBEhSRurlNBaGZWAGg+qaF64+UQ8TPtl5JR1RgVhy0jWmElpO dROHwt0gdLsu1EQYn2/1jFHLkR1qWUoTjRMeNRcuE9oG4ypFY7fNRVtxcFenbCJY+SgP4p j55C/ei5VE03Kkm/PDF68AKyrw+APWCMuq/C2oee4zj1BK008q2dpGnpsy2zEP90dxx0pJ 5HU7ql557yHqhJ9G9bpyeE84pkByzyhaa26MggR1C7ssvCVNFeJkIqFmqv0qY6QnSDF1mS iQuwo+u2/PEsLPR1rkg/PfQpzakz9xaDh6MTkkUXHo6n9Vfi+LPIji5pzx8Tkw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1638633037; a=rsa-sha256; cv=none; b=HEUV/0qE4zl0J7A9YS0ZIhkTHBNuFo0L1H24Z3ev6hnIp7ewCgakyQugqa5c0cnq1nubXf j+A9CVvnLHuEQgORe7S6UXfjiaX6XidfbTMkCIfIwKXkzEj7sYsZUp6nH9e8rCi4M0VRId nYsl+CVtznLbely7Xq1I8igE/q03EBo3hUYRHR7K5Qw6sQ31wXylBCvjZHinaUoCI5x+vW 3oubQSdjQCpimWIcmoorj4smCecTsNzDdhm0Wtx+ZqUYEdRxVBN4GhnIRyYbjP3bmxALTY vTXCpHqoF0s3PaqjP3PtLsQNc0ow2s6SwM/Y/QyJrct0ZcnKP67c9tWc3ZP0gw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2607:5300:201:3100::1657 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: -1.98 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2607:5300:201:3100::1657 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: F2D9636FBD X-Spam-Score: -1.98 X-Migadu-Scanner: scn0.migadu.com X-TUID: UU7mSpqjE6V3 Tobias Backer Dirks writes: > A slight rework of base bash completion to handle all shared options. > This simplifies the handling of base commands and adds creature comforts > such as directory completion for --config, and removing trailing spaces > from options ending in an `=`. Also fixes a bug reported in [1], wherein > completion after an `=` produced erroneous output. > > [1]: id:20200602103703.GA13623@taurus.defre.kleine-koenig.org Just a reminder this awaits review / testing from bash users. There must be some users of bash, I hear it's a pretty popular shell. d