From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: from zero.zsh.org (zero.zsh.org [IPv6:2a02:898:31:0:48:4558:7a:7368]) by inbox.vuxu.org (Postfix) with ESMTP id B57B8211F3 for ; Sat, 30 Mar 2024 16:19:23 +0100 (CET) ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1711811963; b=Soga4zw5khats8j87dpvccVHyiwRVK3vmWJOVuAKchd4asvsd0Zi5Pf1tyNvJBRlk/YXgvCAwl reOFpZXSnY8UghLHnZhvVkqwv0of/u0yAvzxxtZmlPgiO3rqY6EpKXKVt6VX9cn4vuCiaMiA4L Eqff2YyIr4n/y4v9mMog7oDjeCchgMhXVz+6R/ZqI9f0b4icvJALbSHzcMpwR4n8q4XWxEvB8v K9QgETeBysSXUflMcRurNpAMlafWm1zD414FvXpxC16LugJ85qmhDmTl6xCi2taqPifTnU0rI8 xkzqfE43z84FcUwckWGJ5L3diF7dN9eiGKLRdTUXWWYAaw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mta04.eastlink.ca) smtp.remote-ip=24.224.136.10; dmarc=none header.from=eastlink.ca; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1711811963; bh=Mny/qr4MbyA0HBnJbX6MeGSO24R2PcT0UmMgTzH1vIk=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:Subject:From:To: MIME-Version:Date:Message-ID:DKIM-Signature; b=YBOjEG3quzCaeL8iJBzfCPdqxd4NjeGXS9OrySq5CDuHucCT0Ofd2Hm55jzu55s+UwdZccLedD 18mgdHluls/HQulCd+xRXZAZdz+D3bHEjRM5ZoOe6Ex4Hub69z7O6opqn4oV9zpjUtr350AuWi BjQoRmeahhRxlm1/mifNt2lMIq2OeuEGe4Fes8DZQ8jAZvxLeizbrtv31d3+oSuRLSpABDVVgA u77krFu5ssdd/p/EVTOiprNZASSR+PjRPSGI8SmJMovAnaj36A/ANfjMqKoFNoipf4G520XnNr sv0gu0tWNTCOh7C/yVxsZmIwHQeioXuHuwbczXDxJqLgmw==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-transfer-encoding: Content-type:Subject:From:To:MIME-version:Date:Message-id:Reply-To:Cc: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References; bh=huZlyI7Qxl+uYpc+OGxGDRezY85nCEtftxsgJYTlFAU=; b=EjJzPUP4TKSlgAIUI9Q3Icw30l s7Jx51HlhwdF9pKr4HUbHuRCXZr4MLTx70K0TEtDzuqrCEDCaQ9UhTEisIRaqD9YDjWysOC4UJ/1M MEc3qQN117NlAJQ9oYDl74TTXpWbx54+M8vSA1iv+3jA7wOH2S305f39PjZrWvmYYLVd5mj6rM0Au VnvCPMvHTRTHOVZTcTCAuJQr2K2U1YuCJtvZe/zMa5Hpthndu3KMINNpRRFQCFrBhS0h1JS48dkqx h72UuR4p6QdZhz6Z2xfNE18LFXuMFkCKNJhTy5ygcBo9EXLcGN8af47LUFh+b+w3Ode9NAy7AiXPG qRIQLDwg==; Received: by zero.zsh.org with local id 1rqaUM-0008Lr-7N; Sat, 30 Mar 2024 15:19:22 +0000 Authentication-Results: zsh.org; iprev=pass (mta04.eastlink.ca) smtp.remote-ip=24.224.136.10; dmarc=none header.from=eastlink.ca; arc=none Received: from mta04.eastlink.ca ([24.224.136.10]:37639) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1rqaTY-0007fM-Od; Sat, 30 Mar 2024 15:18:33 +0000 Received: from csp02.eastlink.ca ([71.7.199.167]) by mta04.eastlink.ca ([24.224.136.10]) with ESMTPS id <0SB625J282G9I2G0@mta04.eastlink.ca> for zsh-users@zsh.org; Sat, 30 Mar 2024 12:18:31 -0300 (ADT) Received: from [192.168.0.11] (host-24-207-19-13.public.eastlink.ca [24.207.19.13]) by csp02.eastlink.ca ([71.7.199.167]) with ESMTPSA id qaTWrinhT5TsrqaTXr6C8f (version=TLSv1_2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256); Sat, 30 Mar 2024 12:18:31 -0300 X-Authority-Analysis: v=2.4 cv=deIj3mXe c=1 sm=1 tr=0 ts=66082d47 a=e7T7DzMKK1R988ZCg0wLyw==:117 a=e7T7DzMKK1R988ZCg0wLyw==:17 a=IkcTkHD0fZMA:10 a=sYPEBGuOB9WD1sAFpPkA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 X-Vade-Cause: gggruggvucftvghtrhhoucdtuddrgedvledruddvhedghedvucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecugfetuffvnffkpffmpdfqfgfvnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefkffggfgfvhffutgfgsehtkeertddtvdejnecuhfhrohhmpeftrgihucetnhgurhgvfihsuceorhgrhigrnhgurhgvfihssegvrghsthhlihhnkhdrtggrqeenucggtffrrghtthgvrhhnpeevgeeuheeuveeuledvfeeikeetveefudekudegieehvddvgfdvffeikeehgeeggfenucfkphepvdegrddvtdejrdduledrudefnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepvdegrddvtdejrdduledrudefpdhhvghloheplgduledvrdduieekrddtrdduudgnpdhmrghilhhfrhhomheprhgrhigrnhgurhgvfihssegvrghsthhlihhnkhdrtggrpdhnsggprhgtphhtthhopedvpdhrtghpthhtohepreerpdhrtghpthhtohepiihshhdquhhsvghrshesiihshhdrohhrghdpghgvthdqkghiphfrrghsshifugepthhruhgv X-Vade-Score: -100 X-Vade-State: 0 X-EL-AUTH: rayandrews@eastlink.ca Message-id: <3643c571-5830-420c-9d1f-88a6bf22cc0e@eastlink.ca> Date: Sat, 30 Mar 2024 08:18:30 -0700 MIME-version: 1.0 User-Agent: Mozilla Thunderbird Content-language: en-US To: Zsh Users From: Ray Andrews Subject: vanishing spaces Content-type: text/plain; charset=UTF-8; format=flowed Content-transfer-encoding: 8bit X-Seq: 29742 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: , List-Subscribe: , List-Unsubscribe: , List-Post: List-Owner: List-Archive:     aptitude columnizes its output nicely: (cut down here to avoid wrapping): % aptitude search '~i?name(nvidia)' i A glx-alternative-nvidia                  - allows the selection of NVIDIA i A libegl-nvidia-tesla-470-0               - NVIDIA binary EGL library i A libgl1-nvidia-tesla-470-glvnd-glx       - NVIDIA binary OpenGL/GLX i A libgles-nvidia-tesla-470-1              - NVIDIA binary OpenGL|ES 1.x     ... I have reason to capture the output of several versions of aptitude searches into a variable. I hope 'eval' is the right way: output=$( eval $* )  # Save output to an array variable.     ... where: '$*' ... is the command string that's been put together elsewhere. print -l $output i A glx-alternative-nvidia - allows the selection of NVIDIA as GLX provider i A libegl-nvidia-tesla-470-0 - NVIDIA binary EGL library (Tesla 470 version) i A libgl1-nvidia-tesla-470-glvnd-glx - NVIDIA binary OpenGL/GLX library     ... the nice columns disappear. However: eval $*     ... shows it with columns intact so eval itself is not the issue it's somewhere in the capture of the variable.  How can I fix that?  I'm used to doing battle with splitting issues but this seems different.  'typeset -p' shows me nothing useful.  Is this one of those things were zsh is helpfully removing an empty element?  Somehow the padding spaces are their own separate element and since empty, removed?  That's my only guess.  I've tried a dozen variations on quoting with no luck. I know how to preserve empty lines, but that doesn't work here.