From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,NICE_REPLY_A,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 14960 invoked from network); 19 Nov 2022 18:03:28 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 19 Nov 2022 18:03:28 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1668881008; b=XecwLQuglnERXCfW/UdgSoBIAE6yUmb+ehbfSfrBGgMNAkfn7Zm6mTLirTpEBhyTUke/JXiZT8 GkuxcyeyvRKkew79bit6sk3nCM29A7wM20zIPYwTMPHHnGobakKJGWQOZEheR9t6Z9m8rNY7ys DAPsECjnykdyHmIoEtZE6OEh8EOwYOoB2u76KFQDlJXCXTWwZPe8/7p5oH2GaDXgOIFc2yTyLX fo7gggTP8cigksfbVZGs5AoOxHFnp0g1VNzPfMdfaN+tP0gDUlInQt+SPnxoXAFZ19+6a6Lmu3 15Dtp1z78HOETpCoit+HYX7JwAdSBG35HCqZb7zHlZ1ONw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (iris.zentaur.org) smtp.remote-ip=198.58.127.206; dkim=pass header.d=zentaur.org header.s=dkim20200120 header.a=rsa-sha256; dmarc=pass header.from=zentaur.org; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1668881008; bh=EyCj8SkeY/wst+1xtNkJpmZQETc1oHU7U4JoZzpxGr0=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:In-Reply-To:From: References:To:Subject:MIME-Version:Date:Message-ID:DKIM-Signature: DKIM-Signature; b=m3Bqu6xaMN5ZOdrZr4sLOJyUPwz2iUjHtKvDXDl4JkJzzpNmvDl+Cr/fOUsaG/TG9Dg9AoRdXO 3ODXPJ9zDnVjIja/UW46rHO9+1QPqeuWwyw4uMQNu8Ss9dTXOWBHbeY+TFHM6XDwaVNc90pi7L lkVwo3AXVkcIsy9LhNGcWU5CqPzlx2BtgXxxyjz7nh2RuROtwmBwkGrQ4A0HidkQwy11Qhll4F JHzmvB0luHOHLYh6P6/QzxxeH0zFBsOGkviy8z5y7BNtP5NgHx6kLKXe2+HTDL4HG8VFaB70J+ dE87Mlz75gdbW+7ISkqM521iOh7E8CV/bQ5ZVB3pjjzrPA==; 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:In-Reply-To:From:References:To:Subject: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; bh=EyCj8SkeY/wst+1xtNkJpmZQETc1oHU7U4JoZzpxGr0=; b=bA1cEiRToX7slbEl8XsHvF8UTH w7bMRaSuEukmzvXWvdUhBuCmE83VBVCsFwXgU59vWqtDVlp7GYeoV+ISpNvWeve02XKcPUAY1JGAL 0r2/uK4laqECZ4UyqnJwq0Zo637CrrU+hXmhgTSzmX4TbseHoguwlhXq2miyEnKo+terQ6NGh4dYV SjnuF3bXxGJdj4qziYf/zentzHkDI2B8OvuyTxT810aJZzgABqUTJKEvzSbcxb4KMrhxLFKUZjxFi wuI9s+8oVp40LQAALDMeaB2mS9Us3SIeEpRy6XYBNgkolHI2dCoaBLjRaSH01fQRbEXvPKW9iz09V D0RlwhBA==; Received: by zero.zsh.org with local id 1owSBb-0009KE-BY; Sat, 19 Nov 2022 18:03:27 +0000 Authentication-Results: zsh.org; iprev=pass (iris.zentaur.org) smtp.remote-ip=198.58.127.206; dkim=pass header.d=zentaur.org header.s=dkim20200120 header.a=rsa-sha256; dmarc=pass header.from=zentaur.org; arc=none Received: from iris.zentaur.org ([198.58.127.206]:42750) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) id 1owSAa-0008dh-JN; Sat, 19 Nov 2022 18:02:26 +0000 Received: from iris.zentaur.org (localhost [127.0.0.1]) by iris.zentaur.org (Postfix) with ESMTP id 4NF1hH16lwz3wZj for ; Sat, 19 Nov 2022 18:02:23 +0000 (UTC) Authentication-Results: iris.zentaur.org (amavisd-new); dkim=pass (2048-bit key) reason="pass (just generated, assumed good)" header.d=zentaur.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=zentaur.org; h= content-transfer-encoding:content-type:content-type:in-reply-to :from:from:references:to:content-language:subject:subject :user-agent:mime-version:date:date:message-id; s=dkim20200120; t=1668880942; x=1668884543; bh=EyCj8SkeY/wst+1xtNkJpmZQETc1oHU7 U4JoZzpxGr0=; b=2lCl51aBUtevvihkdJe89Yf/e1oPWvwLML43fBbULlKAtOiT doUVIlCn9eHBWAzuW3mIMi/YswowU4s04GZUSzDEqtC1xwkUFgGa8EEt9NPaVI4c 2pGtrtUiACcoj4Ldmi5EXpqqATNc7apqiaLda36mf+86UuLxaAck62cKWHf36ACM RaGF1v8/huX2IstR7q6gzWfVGJPNqNOvTbjsOCovFWMWq0aUFFblA8bkVIxNfBQP SFnJ86tHbXxg310fLHmwOVdPjGUZ8Rs1QYKWwBgBxALplhJtd4q/aBPuTrqPwuuY saQV95K0ryPykuGl38WY87EadlNw57uD3/TTow== X-Virus-Scanned: amavisd-new at iris.zentaur.org Received: from iris.zentaur.org ([127.0.0.1]) by iris.zentaur.org (iris.zentaur.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 2tVbNkYYO0sW for ; Sat, 19 Nov 2022 18:02:22 +0000 (UTC) Received: from [192.168.72.136] (unknown [136.50.213.220]) by iris.zentaur.org (Postfix) with ESMTPSA id 4NF1hG4D2cz3wZb for ; Sat, 19 Nov 2022 18:02:22 +0000 (UTC) Message-ID: Date: Sat, 19 Nov 2022 12:02:10 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: why is eval needed? Content-Language: en-US To: zsh-users@zsh.org References: From: Clinton Bunch In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed X-Antivirus: Avast (VPS 221119-2, 11/19/2022), Outbound message X-Antivirus-Status: Clean Content-Transfer-Encoding: quoted-printable X-Seq: 28414 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: On 11/19/2022 11:02 AM, Ray Andrews wrote: > > On 2022-11-19 06:43, Roman Perepelitsa wrote: >> With the default options this this the same as this: >> =C2=A0=C2=A0=C2=A0=C2=A0 tree '-L 2' >> >> Is it clear why it doesn't work? > > Actually yes ... but that was only my last effort.=C2=A0 With double qu= otes=20 > the error is: > > >=C2=A0 -L 2 [error opening dir] > > ... and with no quotes it's: > > > test:local:5: not valid in this context: -L > > ... to correct myself, it's really the double quoted offering that I'd=20 > expect to work.=C2=A0 I'm pretty sure this is an invisible grouping of=20 > arguments but I don't know what to do about it other than 'eval'.=C2=A0= I'm=20 > thinking that when tree sees: " -L 2 " it's seeing that not as a=20 > switch followed by a number, but as a single syntactic element which=20 > it's trying to interpret as a directory name.=C2=A0 Which sorta is=20 > semi-understandable since the quotes make " -L 2 " into 'one thing'=20 > whereas tree want's it to be 'two things'.=C2=A0 How to drop that varia= ble=20 > in there so that tree is happy with it?=C2=A0 Is this perhaps a bit of=20 > crabbiness on the part of tree?=C2=A0 Should " -L 2 " be an array?? She= esh,=20 > that might keep tree happy.=C2=A0 And ... > > =C2=A0=C2=A0=C2=A0 local level=3D( -L 2 ) > =C2=A0=C2=A0=C2=A0 tree $level > > ... > > Success!=C2=A0 Ha! You give me enough feedback that I can talk myself o= ut=20 > of the problem :-) Another option is =C2=A0=C2=A0=C2=A0 local level=3D'-L 2' =C2=A0=C2=A0=C2=A0 tree $=3Dlevel Word splitting level gives the results you want > > > > > >