From unknown Tue Aug 19 23:09:50 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#51373 <51373@debbugs.gnu.org> To: bug#51373 <51373@debbugs.gnu.org> Subject: Status: [PATCH] etc: completion: Filter gratuitous spaces from available packages. Reply-To: bug#51373 <51373@debbugs.gnu.org> Date: Wed, 20 Aug 2025 06:09:50 +0000 retitle 51373 [PATCH] etc: completion: Filter gratuitous spaces from availa= ble packages. reassign 51373 guix-patches submitter 51373 Liliana Marie Prikler severity 51373 normal tag 51373 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 24 08:31:12 2021 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 Subject: [PATCH] etc: completion: Filter gratuitous spaces from available packages. to: guix-patches@gnu.org 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-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) * 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 From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 24 09:47:24 2021 Received: (at submit) by debbugs.gnu.org; 24 Oct 2021 13:47:24 +0000 Received: from localhost ([127.0.0.1]:38213 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1medqO-0007H8-B1 for submit@debbugs.gnu.org; Sun, 24 Oct 2021 09:47:24 -0400 Received: from lists.gnu.org ([209.51.188.17]:44530) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1medqL-0007Gs-Qu for submit@debbugs.gnu.org; Sun, 24 Oct 2021 09:47:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52944) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1medqL-0003w0-JO for guix-patches@gnu.org; Sun, 24 Oct 2021 09:47:21 -0400 Received: from tobias.gr ([2a02:c205:2020:6054::1]:34158) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1medqF-00027l-9c for guix-patches@gnu.org; Sun, 24 Oct 2021 09:47:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; s=2018; bh=AKCsO+YhWJcRW LFXUMapKfBMexhjnSd4WwyVzbm78Vo=; h=in-reply-to:date:subject:cc:to: from:references; d=tobias.gr; b=gYi7jCG/jIvic1Ia5qa3jqIEjacSCtp4kK8zxy /DoXiHXC7ZSp9c0Nmr4QSyp1099C71DUZBHpaRgeviyASFr1m6qTi7s+pvs4PeFIHZGEqD mqS2kH6dLqXszQeYmhJRNK8McDR37vKueSqsv8Kd5Nzk73XU/mGc+F9tjFzN5GIHY/7ZbC N9Scybn96td5zQCcM2QH2tAmEy+7ZYBBq8rSoUVEwOqj6JpbkAqXZI3fZjrjIg9/fR+m+p Bx0oaHeHHiP7UyqfbAUXbWwn6ok89RXG0pJINfQHPI54rUYBqw+fr3JJxl2JMe5i8Vl0ON QDYelD6VWRM7qNAVaS56fisg== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id d5242418 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Sun, 24 Oct 2021 13:47:08 +0000 (UTC) References: From: Tobias Geerinckx-Rice To: Liliana Marie Prikler Subject: Re: [bug#51373] [PATCH] etc: completion: Filter gratuitous spaces from available packages. Date: Sun, 24 Oct 2021 15:43:44 +0200 In-reply-to: BIMI-Selector: v=BIMI1; s=default; Message-ID: <87zgqyilg5.fsf@nckx> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: pass client-ip=2a02:c205:2020:6054::1; envelope-from=me@tobias.gr; helo=tobias.gr 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, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.6 (-) X-Debbugs-Envelope-To: submit Cc: 51373@debbugs.gnu.org, guix-patches@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.6 (--) --=-=-= Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Liliana Marie Prikler =E5=86=99=E9=81=93=EF=BC=9A > + _guix_available_packages=3D(${${(f)"$(guix package -A |=20 > cut -f1 | sed -e 's/ //g')"}}) Does ZSH support something like bash's "${foo[@]// /}"" to avoid=20 spawning sed altogether? Otherwise LGTM! Kind regards, T G-R --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIMEARYKACsWIQT12iAyS4c9C3o4dnINsP+IT1VteQUCYXVj6g0cbWVAdG9iaWFz LmdyAAoJEA2w/4hPVW15NDEA/1M7ewpJ7+Hs6ynrEcLfhoNUu9FzpO35lxzsgqhY BusIAQDNGqZ8qj98ONPQZ/CKT/MMi751+ukcKxwIiULpGMVpCQ== =gjjw -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 24 09:58:27 2021 Received: (at submit) by debbugs.gnu.org; 24 Oct 2021 13:58:27 +0000 Received: from localhost ([127.0.0.1]:40434 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mee14-00088V-Sm for submit@debbugs.gnu.org; Sun, 24 Oct 2021 09:58:27 -0400 Received: from lists.gnu.org ([209.51.188.17]:48824) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mee13-00088O-Jn for submit@debbugs.gnu.org; Sun, 24 Oct 2021 09:58:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54096) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mee11-0007L7-Q9 for guix-patches@gnu.org; Sun, 24 Oct 2021 09:58:23 -0400 Received: from tobias.gr ([2a02:c205:2020:6054::1]:34160) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mee0z-00013f-KZ for guix-patches@gnu.org; Sun, 24 Oct 2021 09:58:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; s=2018; bh=vMApQJWHohsxY m2x6yIDKFogxbJ68JLoLXAbQrxV9+Q=; h=in-reply-to:date:subject:cc:from: references; d=tobias.gr; b=Dd+QsvSFAcO3KnUv/0ZT86sOUUJozspnirAM76Quund gnRrqaXGyyn0xTqGYTfMw3Xa8Htvz66KsFlMdOMGAODJyfeDd0Dx+DUsaq6iYiUtQCodhw egWENWzNN8k2Ej/70dyQ8QYY/UTt4dXpDot1h4oPd5D3ZLUh6cA50gmwWvnTqvN2wL0DHR q3BLrQzUPCyTvhpCo89fKGxoareOohLRm9w/qeTuOxTxgcw2rl/GxmW83fLwvKygk5Np6a PEnCFblgQP8zq6kiiDjQZOiyFSGfEjLOvxIdw5gR1Mo7Lgm55huLmNGTANz6yaAf9bj4bf mvkkVPhugdwi/xYKwGg== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id 28b0c93f (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Sun, 24 Oct 2021 13:58:14 +0000 (UTC) References: <87zgqyilg5.fsf@nckx> From: Tobias Geerinckx-Rice Subject: Re: [bug#51373] [PATCH] etc: completion: Filter gratuitous spaces from available packages. Date: Sun, 24 Oct 2021 15:57:35 +0200 In-reply-to: <87zgqyilg5.fsf@nckx> BIMI-Selector: v=BIMI1; s=default; Message-ID: <87wnm2ikxm.fsf@nckx> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: pass client-ip=2a02:c205:2020:6054::1; envelope-from=me@tobias.gr; helo=tobias.gr X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.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, MISSING_HEADERS=1.021, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -0.4 (/) X-Debbugs-Envelope-To: submit Cc: 51373@debbugs.gnu.org, Liliana Marie Prikler , guix-patches@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.4 (-) --=-=-= Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Tobias Geerinckx-Rice via Guix-patches via =E5=86=99=E9=81=93=EF=BC=9A > Does ZSH support something like bash's "${foo[@]// /}"" to avoid > spawning sed altogether? It *seems* equivalent, which is as much as I dare say of anything=20 ZSH. Kind regards, T G-R --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIMEARYKACsWIQT12iAyS4c9C3o4dnINsP+IT1VteQUCYXVmhQ0cbWVAdG9iaWFz LmdyAAoJEA2w/4hPVW15DssA/RXWvIDwTHtgbTsjVfmDY6PDnnC5Mvwl1jmeRJ2M 0QjIAP4iKxUye73B1CEPpDV5nSkYaKeWeoQUV70zcHJhl2ZuCw== =D0D/ -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 24 10:47:36 2021 Received: (at 51373) by debbugs.gnu.org; 24 Oct 2021 14:47:36 +0000 Received: from localhost ([127.0.0.1]:40524 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1meemd-00034u-P1 for submit@debbugs.gnu.org; Sun, 24 Oct 2021 10:47:36 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:41830) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1meemc-00034B-BQ for 51373@debbugs.gnu.org; Sun, 24 Oct 2021 10:47:34 -0400 Received: by mail-wr1-f68.google.com with SMTP id d3so3594364wrh.8 for <51373@debbugs.gnu.org>; Sun, 24 Oct 2021 07:47:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:subject:from:to:cc:date:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=TCH2S3iZarZ6z2rVyl0/zpvNQWfHTnu+VejT7fz38tc=; b=PaYdNv7ZOerE/OkqgMmfa4+zF/P5/top9RB8SlyJxW6b4oBnO/jA6HyTbJMQb+Bdtr 8KME7ALShtrulKXCmC0j2gViTUWeTia2f/qkDeeQ1iGhMSy0767Stvy4mSkc4exuQhmB h7ofrH7h94Xpfu2lKHZYqfwq704tRk3KAFBBjzYTQnE5QhnvpzzTNQP0pMK5ZoZZlU5C TU1/RjFq1QCKx0hXVwA4IBKK+zqsWxapxdSZL6Kl+eTCUG0gqxmFxpvvB1PABWdX7LRI y+Z6VwSwFDY/VNh3yEmnTMO9e3yM66x+FSCp2EPOH96Qmz4SQWfxw5+P1F9uiaZinT79 vaTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=TCH2S3iZarZ6z2rVyl0/zpvNQWfHTnu+VejT7fz38tc=; b=j8UIUJsVMhKows8fu1rH/59MtG3Jt1rcrYEKlJGygjh5VvtiZMvQTIW6aHGkMvE2Be +TC8ThmutO3D9baA709V4Z9D12/TqVq3gct+LErBz7vCmcbdsqeWxbHnLiAWhBTkgjQe Cx3NQ0ynkydIJ4ODPi25wCroUNoVxtw8sYkyi7WLoWjzyxtiMg5b4Stv2/hIbrInT91Z ie364OcWGiRK+O3yzmwfiWXH9cPzS8hdKBNz/GU1CbGRoweaJkvsLzCKBm5Hx0rfUbqH AyBIBP5O3fgAeRV2j4BKH3Wpnx3/2LV9XTfxtlbHqpTTlEUmuPH9wuuTwPe9FZJ1Qb0T 4BQg== X-Gm-Message-State: AOAM533bdNuVY/YCVOka3iYK1eLizZIgtGVillHFYAXy5Dv5z4NxlVoe Fwcb1TYk9bLEG1ZRkgfXv8M= X-Google-Smtp-Source: ABdhPJzWsSDpU6Ra9xjgksLNxW08DNYRUKsfx6ijqVGGPZoU7tDgYGqbQgpD+zdFxsQ1vxw1ALwu+g== X-Received: by 2002:a05:6000:1283:: with SMTP id f3mr16347640wrx.128.1635086848388; Sun, 24 Oct 2021 07:47:28 -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 a134sm5631543wmd.9.2021.10.24.07.47.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Oct 2021 07:47:27 -0700 (PDT) Message-ID: <344a41f281c0abaec9533f0b683c9b3bde16ffa9.camel@gmail.com> Subject: Re: [bug#51373] [PATCH] etc: completion: Filter gratuitous spaces from available packages. From: Liliana Marie Prikler To: Tobias Geerinckx-Rice Date: Sun, 24 Oct 2021 16:47:26 +0200 In-Reply-To: <87wnm2ikxm.fsf@nckx> References: <87zgqyilg5.fsf@nckx> <87wnm2ikxm.fsf@nckx> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 51373 Cc: 51373@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Am Sonntag, den 24.10.2021, 15:57 +0200 schrieb Tobias Geerinckx-Rice: > Tobias Geerinckx-Rice via Guix-patches via 写道: > > Does ZSH support something like bash's "${foo[@]// /}"" to avoid > > spawning sed altogether? > > It *seems* equivalent, which is as much as I dare say of anything > ZSH. Haha, yeah, zsh can be weird at times. I typically don't play around with such fancy syntax all that much so on the top of my head I wouldn't even know how to rewrite my patch using that. However, if it helps not spawning a process like once during compinit, then go ahead and use your version :) Thanks, Liliana From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 24 15:03:56 2021 Received: (at 51373-done) by debbugs.gnu.org; 24 Oct 2021 19:03:56 +0000 Received: from localhost ([127.0.0.1]:40936 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1meimh-0007uD-Tq for submit@debbugs.gnu.org; Sun, 24 Oct 2021 15:03:56 -0400 Received: from tobias.gr ([80.241.217.52]:53802) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1meimg-0007u3-4n for 51373-done@debbugs.gnu.org; Sun, 24 Oct 2021 15:03:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; s=2018; bh=AznY9zXDtVspV Iq+4Luj1Ln75uMxXsI6Oh/SnB0ArsE=; h=in-reply-to:date:subject:cc:to: from:references; d=tobias.gr; b=Zx8Bv0SyJtOTEIarxCXMeYD773Rlj3nD9WQBnF KGyXq41I1WxnBS5YW2S2jztw4RINXv51Hd42nJF/Hyw/RDecLoqEWObtjm7Wo6bjiCuCpZ EXKnfueez3cS1i0DFFEtFeL/eYrD+xcailoStQk2IuRR7JcbXDsk6dqO90/by7YQHLfcfo KvzL4KjXeyPq22/XZhqUobjg7mNxcuerqVXS1t57zmgQnWpKn8lwWTAkHakm2P4F5mkWNm IyKNRnmEHV03+7WecE3JUPePjS5W9ZRpYL2KUJUKVZKl2/fNjNw9LnDEzRpq3w1YgMy4q4 BW+J1y0TS8CD11LCiQBcRE0w== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id a395cd95 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Sun, 24 Oct 2021 19:03:48 +0000 (UTC) References: <87zgqyilg5.fsf@nckx> <87wnm2ikxm.fsf@nckx> <344a41f281c0abaec9533f0b683c9b3bde16ffa9.camel@gmail.com> From: Tobias Geerinckx-Rice To: Liliana Marie Prikler Subject: Re: [bug#51373] [PATCH] etc: completion: Filter gratuitous spaces from available packages. Date: Sun, 24 Oct 2021 21:01:04 +0200 In-reply-to: <344a41f281c0abaec9533f0b683c9b3bde16ffa9.camel@gmail.com> BIMI-Selector: v=BIMI1; s=default; Message-ID: <87wnm29rdz.fsf@nckx> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 51373-done Cc: 51373-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Liliana Marie Prikler =E5=86=99=E9=81=93=EF=BC=9A > Haha, yeah, zsh can be weird at times. I typically don't play=20 > around > with such fancy syntax all that much so on the top of my head I Your sanity is duly envied. > wouldn't even know how to rewrite my patch using that. However,=20 > if it > helps not spawning a process like once during compinit, then go=20 > ahead > and use your version :) There are plenty of other seds littering the file=E2=80=94though not this=20 trivial. At least commit 55f6d9e818512b4e3e4adacfa99deb201b6854be=20 avoids one more. Thanks! T G-R --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIMEARYKACsWIQT12iAyS4c9C3o4dnINsP+IT1VteQUCYXWuGQ0cbWVAdG9iaWFz LmdyAAoJEA2w/4hPVW155QEBANbrHjSl77G1JUjePovJF+DfiaOxnoEETtrq6yja 3SAkAP9/1UYcBnbyjNeLPf6+orxnJ9sZCNryG2E0Fb5EePh8CA== =EjcE -----END PGP SIGNATURE----- --=-=-=-- From unknown Tue Aug 19 23:09:50 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 22 Nov 2021 12:24:10 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator