From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id KLFRNAO0e2QdZwAASxT56A (envelope-from ) for ; Sat, 03 Jun 2023 23:43:31 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id CI41NAO0e2R1KwAAauVa8A (envelope-from ) for ; Sat, 03 Jun 2023 23:43:31 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 7C5E43F1C2 for ; Sat, 3 Jun 2023 23:43:26 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q5Z1e-0007fc-2E; Sat, 03 Jun 2023 17:43:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q5Z1b-0007f4-PA for guix-patches@gnu.org; Sat, 03 Jun 2023 17:43:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q5Z1a-0003GE-Vi for guix-patches@gnu.org; Sat, 03 Jun 2023 17:43:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q5Z1a-0006nt-B5 for guix-patches@gnu.org; Sat, 03 Jun 2023 17:43:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#63860] [PATCH v2] Add Bash completion file. Resent-From: Liliana Marie Prikler Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 03 Jun 2023 21:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63860 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Oleg Pykhalov Cc: 63860@debbugs.gnu.org Received: via spool by 63860-submit@debbugs.gnu.org id=B63860.168582853626099 (code B ref 63860); Sat, 03 Jun 2023 21:43:02 +0000 Received: (at 63860) by debbugs.gnu.org; 3 Jun 2023 21:42:16 +0000 Received: from localhost ([127.0.0.1]:44452 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q5Z0p-0006mr-Ry for submit@debbugs.gnu.org; Sat, 03 Jun 2023 17:42:16 -0400 Received: from mail-ed1-f68.google.com ([209.85.208.68]:61927) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q5Z0n-0006me-8y for 63860@debbugs.gnu.org; Sat, 03 Jun 2023 17:42:14 -0400 Received: by mail-ed1-f68.google.com with SMTP id 4fb4d7f45d1cf-51480d3e161so4999397a12.3 for <63860@debbugs.gnu.org>; Sat, 03 Jun 2023 14:42:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685828527; x=1688420527; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=R6VfXi56e9rF33nMQ0sc4qswk6MoulgeM37RtH67LPs=; b=bN328pOPv52DQ2f+EfGI4nLBMM9NYOA2Ls+vyHbALjMi4eNLnI43cHlwVRJi1Vy7HE Q63juSTPNpbSmkFgQLRnQnKPGVCIF6pBNRwhAhRF32B9REk4HXBw1hDhy36RtDSJUiCv xWKxEEc/wQDf2Z/clE6dy+sUeaExFjHq8bdj4Iunu09x9CCInXN06wT2PeUHAUrTKT73 LIvvTwHFYvL6SFgnmxCYhvRc9ZQNCTv62x/oNUCDkgwxihuM+YyxjlXRy/CLSuGFUyIs k2V45aP855P/t9pdP9Vny3Gs1p/HAsQt30/J/DbfPpaziqlyXKL5SKsKtZw/i61U2KTh rioA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685828527; x=1688420527; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=R6VfXi56e9rF33nMQ0sc4qswk6MoulgeM37RtH67LPs=; b=WsUlyqrd2H17iDoX7K4fHx6mw3ADanAM/jlkA28mfDHAf+SYm4BD8tgWNrrDrxQ01Q T/72qU9t8D6EvqcOXRMBXWhQIWg2OBPfbfFdJrw95Na3ey1vSvXRyKga6IHrb9aXDJGe RUwHmIHWRGvx5UBm6bWu6ZANg8Qql+T7IFfQTcQwUiMKbjZJQfWBH6VvIMyAA0hD7EOq foPRguJxKSWr6LdCGsdJVZpLhk8bUd2/y4Bq3yIYjEoOd9JXO099MIVCrspdmKUOcSuw CQAtMnrRD6CP3wzTH8//ZaWRXcYjKv6W4lKaRZZzC37a8NnRRSBlzkt6g4SoEigOVz2v A6eg== X-Gm-Message-State: AC+VfDxR0YgRy2v2BEZ2H2CfMfSKPp3WtC1hy/7nSBY+BxagOwnGRzpC kcF7NnRd+DBX8GWJoKJnY7ieefyijGG13ekv X-Google-Smtp-Source: ACHHUZ4ELA/4MR7+IO1nejRsz7KbL58NhGIUh3CJBTUwnngqdsZ9LuDU1gD2del6imwkUD6qYoqGug== X-Received: by 2002:aa7:c543:0:b0:514:9e4d:c8b9 with SMTP id s3-20020aa7c543000000b005149e4dc8b9mr5322449edr.11.1685828526784; Sat, 03 Jun 2023 14:42:06 -0700 (PDT) Received: from lumine.fritz.box (85-127-52-93.dsl.dynamic.surfer.at. [85.127.52.93]) by smtp.gmail.com with ESMTPSA id n26-20020aa7db5a000000b005149e012658sm2144589edt.34.2023.06.03.14.42.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 03 Jun 2023 14:42:06 -0700 (PDT) Message-ID: <940cd99ec2de7a9d6b6e0ea98670f0031891cdda.camel@gmail.com> From: Liliana Marie Prikler Date: Sat, 03 Jun 2023 23:42:05 +0200 In-Reply-To: <87sfb8ibvs.fsf@gmail.com> References: <20230603093659.14873-1-go.wigust@gmail.com> <87sfb8ibvs.fsf@gmail.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.4 MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1685828606; a=rsa-sha256; cv=none; b=oNmBkgGvB97BJnny0AJSZFCFS0HRU626FVl/9vtoCbO22rSR38Mnc/xzH0de8aYdUVJRzM T8Wlvh8FyQWBp+/CAQdnCNeDngpcqt3q4D+rF2IqQIWMv8wyOI33P464UpP+cgXPfSlZ7P EzxZnAkE08tbtDzaY0SOGs+yjvTNqEARNCmGrZc0ajpNEnnbquhRir28FKHlmeX3HvRmiE dkygey3XKVlAHfFbEPraR1VgkcC1kWHrayV80N2IdcO6m/TodWZK/nkF9G7IT7izA0g5sh i8rr6cq+kYG0qmf4PlR5BWvS8+yrSV2uDmztdOUYtb+KD6yfgPc6whi7kaAzjw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=bN328pOP; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1685828606; h=from:from:sender:sender: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:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=R6VfXi56e9rF33nMQ0sc4qswk6MoulgeM37RtH67LPs=; b=HCkQ5zmXovJ/RwtczgyAkfFtvpF/mr8TgoaAyNYsj7yAfWmwcwPOm5K1BwcFPycdGAQJl/ D//8VUexDisAZ4Q+k+6/1fknuDHLVA4h1JiPg24LzM9d36SUP9OLg1g3aUVCRvOecjZQgW BZNt0laLkWltIFYRtKOnkxmiNPpEQBNMadGn/P+vt1CA/nxZbKi70lLUAyfYP8j8UDaVGm y2wJHWrqjrVXlMoKpODw1dTgtA/WlnhkfpPNyxViKTknqZvSL9FSpOq/Pcr0C93YjL8hyl FkY2HO81Xo0wSdgOIaB7N8Ewg244NuA7MoR1eAtvZRrMQiuTJnJl7wbNbr1rvQ== Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=bN328pOP; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -2.38 X-Spam-Score: -2.38 X-Migadu-Queue-Id: 7C5E43F1C2 X-TUID: c+xp9h+uD3DH Am Samstag, dem 03.06.2023 um 22:28 +0300 schrieb Oleg Pykhalov: > Liliana Marie Prikler writes: >=20 > [=E2=80=A6] >=20 > > > +{ > > > +=C2=A0=C2=A0=C2=A0 local command=3D"${COMP_WORDS[1]}" > > > +=C2=A0=C2=A0=C2=A0 case "$command" in > > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 discover) > > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 c= omplitions=3D"guix-daemon" > > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 m= apfile -t COMPREPLY < <(compgen -W "$complitions" - > > > - > > > "${COMP_WORDS[$COMP_CWORD]}") > > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ;= ; > > Is there a reason to call the variable "complitions" rather than > > "completions" >=20 > No reason, it's a typo probably from autocompletion of my editor. :-) >=20 > > or using an immediate value? >=20 > Do you mean to use the following? > --8<---------------cut here---------------start------------->8--- > =C2=A0=C2=A0=C2=A0 case "$command" in > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 discover) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 mapfil= e -t COMPREPLY < <(compgen -W guix-daemon -- > "${COMP_WORDS[$COMP_CWORD]}") > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ;; > =C2=A0=C2=A0=C2=A0 ... > --8<---------------cut here---------------end--------------->8--- >=20 > yes, this will work. I'd still quote "guix-daemon", but yeah. Cheers