From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id ML5hFHBSdWF6WAAAgWs5BA (envelope-from ) for ; Sun, 24 Oct 2021 14:32:48 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 4P8PEHBSdWF1WwAAbx9fmQ (envelope-from ) for ; Sun, 24 Oct 2021 12:32:48 +0000 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 D076932AE8 for ; Sun, 24 Oct 2021 14:32:47 +0200 (CEST) Received: from localhost ([::1]:33190 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mecgA-0000Cs-UT for larch@yhetil.org; Sun, 24 Oct 2021 08:32:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41542) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mecfT-0000Bu-H4 for guix-patches@gnu.org; Sun, 24 Oct 2021 08:32:06 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:54778) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mecfR-0003dA-Vl for guix-patches@gnu.org; Sun, 24 Oct 2021 08:32:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mecfR-0000Xk-S7 for guix-patches@gnu.org; Sun, 24 Oct 2021 08:32:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#51373] [PATCH] etc: completion: Filter gratuitous spaces from available packages. Resent-From: Liliana Marie Prikler Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 24 Oct 2021 12:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 51373 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51373@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.163507867232023 (code B ref -1); Sun, 24 Oct 2021 12:32:01 +0000 Received: (at submit) by debbugs.gnu.org; 24 Oct 2021 12:31:12 +0000 Received: from localhost ([127.0.0.1]:38091 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1meced-0008K7-Kc for submit@debbugs.gnu.org; Sun, 24 Oct 2021 08:31:11 -0400 Received: from lists.gnu.org ([209.51.188.17]:36582) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1meceb-0008I1-De for submit@debbugs.gnu.org; Sun, 24 Oct 2021 08:31:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41460) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mecea-00008V-QR for guix-patches@gnu.org; Sun, 24 Oct 2021 08:31:09 -0400 Received: from mail-wm1-x342.google.com ([2a00:1450:4864:20::342]:53143) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1meceT-0002ve-M6 for guix-patches@gnu.org; Sun, 24 Oct 2021 08:31:08 -0400 Received: by mail-wm1-x342.google.com with SMTP id m42so7853909wms.2 for ; Sun, 24 Oct 2021 05:31:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:date:subject:to:content-transfer-encoding:message-id :mime-version; bh=7D9zeMiQcMxv6lMCbVnd/E2FUBCIjrsh4upqhkNO2og=; b=nczKXhUxnTjuoQFG+bcBLYIrFwK/qOuNgCylc8sASOCUPbT1+i48iYrbf85ANXXZr/ Pk+xQqOEJcu4D4mGvPTFRn0Y8vmUPyQh0IyB9XaDBlBzhdHY/TurIeaczvN5pmAvsvRD du1Zm/9olH/EGnjblt0HqiSyfR2U30C63UriuyUPNOa1T9q/ZQ+tbWCITTIOE+w/w4Pf sWQblckPi4TF7SmsCVk8/9mJDHA0c6neeMzyY633JEKvhz2Nr29ZzKJ7Sa+mctNMxQzY MLRLlA6qb1MMlM1WvQs0tbEmcBtp4rIxk0Ca6jAmp+5k1dyQQE/C2IF7+wdRRFdkc3pq YGhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:date:subject:to:content-transfer-encoding :message-id:mime-version; bh=7D9zeMiQcMxv6lMCbVnd/E2FUBCIjrsh4upqhkNO2og=; b=tqBWb1BeMw2ChlTOhp28bwxg5KXw74pyCWGziZo8NiBfBvok02BmXgIsmzaoLtJGMa xWYuOcLnQVA4BFm+P8d5SA+P0ubbidixwplflIiFpUfv1TUCOo2ENcG+QbQVccX2uZ36 Zraj3wVzGfhnJeQaZmipHld1CKnxFcElEotlIt9JbzZB3nlGYcIPVngM6KtuJMezJop2 rRMWfBtlovB3ca3hec4kZAZRHSnrQmG7ojpHbqpZhFJ4PT0Qyk15ck768sNBmfBGBvIT OhWm7QCHyGHiPsRB6sukEEme3vnfPqbJD45cpeqXHYv8wrPMHFv1nuc/tKhQPMuJndOU PaXg== X-Gm-Message-State: AOAM531TCmeTxZVWz43pFsLd+u3bYRqIjzG7Co8uDsHCIqrKmcCfpJtg KTJm9X0r4ZAYb1zvyxjteijRs6zvat6/qg== X-Google-Smtp-Source: ABdhPJxCqRaQgvo3AI80V4Ct80z5mWnWcpn7ElOZuxLWJmFtj+tUv3MURPjF5GLWW3PRw3YnO8cGHA== X-Received: by 2002:a1c:7901:: with SMTP id l1mr10290228wme.160.1635078659890; Sun, 24 Oct 2021 05:30:59 -0700 (PDT) Received: from nijino.fritz.box (85-127-52-93.dsl.dynamic.surfer.at. [85.127.52.93]) by smtp.gmail.com with ESMTPSA id f9sm2904015wrx.31.2021.10.24.05.30.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Oct 2021 05:30:59 -0700 (PDT) From: Liliana Marie Prikler Date: Sun, 24 Oct 2021 14:09:47 +0200 Content-Transfer-Encoding: 7bit Message-ID: MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::342; envelope-from=liliana.prikler@gmail.com; helo=mail-wm1-x342.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1635078768; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=7D9zeMiQcMxv6lMCbVnd/E2FUBCIjrsh4upqhkNO2og=; b=QkzxvRXZIsxEgBO92414AJn1l/yXwu5yX590d3uZ11Rzq4UMlccVRI/Z6UsxUfrQuGgGPA LjQAuxKpd9p9YNnPQfITZ7kD+oSqpIHAGig/5jM0QlkhDl0LNnpr9NWYKAYYHGJZ3JmXmR i6tDlB9f59s4U6POU/DGbrNi5dHGOlbXy552DRiQPl0cqJuG1obnYYpZY0kWU1At9G0ila 9NUaLrMyNlDRf+KwWUS/cfYRs/RML6WIJ6YVvKT+SFl3OPNdzjXZcpDiLEqJNQg6nPnJBO XJYthaabtnzQ05nK4DZ/eKOZE97SKMrHrYQc7fKm56uZ9OHuskJ7z4dZEixrHQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1635078768; a=rsa-sha256; cv=none; b=u6shJFnxhiwdgzSYgDWw8lWIq5LFHywKJJDSMpTVy1J7XzLOowzrqR21EzK+7AD5nbuCER DJn4LOfD2kSz+0JgeogFB6H0ahzV3Mhg6p7df+teHhQydfN5zWDt7bPrLdwPCrcFqWVzch bWG7GTnDoqVbqhf4HphNovFUf1FH8FwVqRISu/kK+fiL0wtzamfvt/i5J7rIq3ppjA8MHT 9hm1/CnScOIoZjPi9h5e2rRjopKC3PBG1sXb/mnXxjKQNKVq5ysIHfPEkTkM+NwKkfUP8G HGc7PI07Rl1KZsOX9bAvX5GwMdfh3ldlF2bURymdonS07q7UNqwxWXsKqstxyw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=nczKXhUx; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -1.32 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=nczKXhUx; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: D076932AE8 X-Spam-Score: -1.32 X-Migadu-Scanner: scn0.migadu.com X-TUID: rloPV3ohwitp * etc/completion/zsh/_guix (_guix_list_available_packages): Add a sed filter to remove spaces. --- etc/completion/zsh/_guix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/completion/zsh/_guix b/etc/completion/zsh/_guix index bbc13c6ca1..6b4060ddeb 100644 --- a/etc/completion/zsh/_guix +++ b/etc/completion/zsh/_guix @@ -57,7 +57,7 @@ _guix_list_available_packages() { if ( [[ ${+_guix_available_packages} -eq 0 ]] || _cache_invalid GUIX_AVAILABLE_PACKAGES ) \ && ! _retrieve_cache GUIX_AVAILABLE_PACKAGES; then - _guix_available_packages=(${${(f)"$(guix package -A | cut -f1)"}}) + _guix_available_packages=(${${(f)"$(guix package -A | cut -f1 | sed -e 's/ //g')"}}) _store_cache GUIX_AVAILABLE_PACKAGES _guix_available_packages fi } -- 2.33.1