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.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,NICE_REPLY_A,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 23401 invoked from network); 19 Nov 2022 19:13:39 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 19 Nov 2022 19:13:39 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1668885219; b=nX3FMcGij7VLOrBHn2M4xRaSz5v0Q7Q2Vm46OopXc605PHcSZnKmNb2ba/rfEZPP1uBVeujZQW 14IkV/bqOyRy5x11n9ZzTFf2gS3PD0nS12Qpxu74O1ym0s/FmeSkVlk/mWXV9FxZshNEvJ1Wgf ZEzDSkjSR1hCc/LjISZtR89xW0MyU0QFBnIzevWw/4hN4J/cEpOxxk7OK+1TvsLse+x8FE7icG PrZTpPNgofihll1+KKU7/roGvzlEKQWz9IAFXFCt+o6B78L9hj0fc/lOnlU3ylM4rqI5tKxAB9 Tb+AHBoz/G3BReF0DbGzKDDxdrCn19geFu4NgW2+0wtAhg==; 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=1668885219; bh=xFlv21elxOBcAoJI8L13yaIYm//YguuEyONM1kWLUUg=; 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; b=KglxYzpZQU5Jd+sOyzAUfUbdmAbidSwJOCwXQeaChOxhi+hnrsN3LIvqzkDo17n3b/GcmdAECw uG8x5gBI2R/U1hWURLZc7O7siB9aookchGfduNCeWq/Ldixi1AzyQqpOXn+5GvZmYb3ltrM+RW 92zXoOhtn0/A20ET+HoP8rWGWZpFFv05anzGhoBUzLM6YqKNRbwxoHgyZiTdZdooQZXR9PHsM+ Wm2cPV78Y289I6Xs+ecJZFhBgVffbt8GYH9GsNyhI33SbMNHs+a3fS95fz82JiUBxcX0h/0XqI +2wfr/5uLQNE4HXWC0bcJeaiC01GBkNTuEL5gtqgIjcsqQ==; 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=UWDpfKUif4Rrb2uhespVCYDWA5a4WkbEeUj8h0YbV6A=; b=N9scCzXhnsYtuZsrULRhflDN6O 78q8JwoypeXVJoW9JIshNbag6YcCzkKZlYHPfiA/gx5uMni4TK3x1VWaDoOTWxgdWZBTkwSY6Cndc CoSFZyq9Yqa4Q48GGV920ujVnewgAGfa69jAEmENSIHwb/snmyNaGL2zx3SPhSoVPCXxFk/lvGFFp t7dDGsff2uVtpuED5PYaebTK4oq6StoLZ+Ajb3kkSQUKt9sb0coL94cplesNffpWGVihKokNMjo/I 6kQ7jM3cBQAfVlwijzoaOp5v9I41UqStV8L3bm82SZWhd/Aocig3FH6qbC+/XTT2ceA8UDdpKtfS8 fNPLtttA==; Received: by zero.zsh.org with local id 1owTHW-000D9K-8h; Sat, 19 Nov 2022 19:13:38 +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]:33765) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128) id 1owTGg-000CTY-Mw; Sat, 19 Nov 2022 19:12:47 +0000 Received: from csp01.eastlink.ca ([71.7.199.166]) by mta04.eastlink.ca (Oracle Communications Messaging Server 8.0.2.2.20180531 64bit (built May 31 2018)) with ESMTPS id <0RLL00H3MYY2RJN0@mta04.eastlink.ca> for zsh-users@zsh.org; Sat, 19 Nov 2022 15:12:45 -0400 (AST) Received: from [192.168.0.4] ([24.207.18.108]) by Eastlink with ESMTPSA id wTGeoNlVykffJwTGeoxWob; Sat, 19 Nov 2022 15:12:45 -0400 X-Authority-Analysis: v=2.4 cv=Lbf6qBTi c=1 sm=1 tr=0 ts=63792aad a=xN66ZtSbq5jdJYpBp7G/jQ==:117 a=xN66ZtSbq5jdJYpBp7G/jQ==:17 a=IkcTkHD0fZMA:10 a=9Z8ABKvjVq4NSGUCVcgA:9 a=QEXdDO2ut3YA:10 X-Vade-Cause: gggruggvucftvghtrhhoucdtuddrgedvgedrhedvgdduvdegucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecugfetuffvnffkpffmpdfqfgfvnecuuegrihhlohhuthemuceftddtnecunecujfgurhepkfffgggfuffvfhfhjggtgfesthekredttdefjeenucfhrhhomheptfgrhicutehnughrvgifshcuoehrrgihrghnughrvgifshesvggrshhtlhhinhhkrdgtrgeqnecuggftrfgrthhtvghrnhepiedtjeffvefgtdehgefgteekueeggeeitedutddvvdduteetffdvveelgfeukedunecukfhppedvgedrvddtjedrudekrddutdeknecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepvdegrddvtdejrddukedruddtkedphhgvlhhopegludelvddrudeikedrtddrgegnpdhmrghilhhfrhhomheprhgrhigrnhgurhgvfihssegvrghsthhlihhnkhdrtggrpdhnsggprhgtphhtthhopedvpdhrtghpthhtohepreerpdhrtghpthhtohepiihshhdquhhsvghrshesiihshhdrohhrghdpghgvthdqkghiphfrrghsshifugepthhruhgv X-Vade-Score: 0 X-Vade-State: 0 X-EL-AUTH: rayandrews@eastlink.ca Message-id: <352823cc-954a-fa79-d830-d69d593b1c02@eastlink.ca> Date: Sat, 19 Nov 2022 11:12:43 -0800 MIME-version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.0 Subject: Re: why is eval needed? Content-language: en-US To: zsh-users@zsh.org References: <20221119164852.hwujmufa6hn5lotr@chazelas.org> From: Ray Andrews In-reply-to: <20221119164852.hwujmufa6hn5lotr@chazelas.org> Content-type: text/plain; charset=UTF-8; format=flowed Content-transfer-encoding: 8bit X-Seq: 28416 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 2022-11-19 08:48, Stephane Chazelas wrote: > And you're calling tree with only one "-L 2" argument while you > want to call it with 2 arguments: -L and 2. Right, that's what I figured out.  The hard part is 'seeing' these invisible boundaries.  But I'm pleased with myself that I did sort it out. Clinton: Another option is     local level='-L 2'     tree $=level Word splitting level gives the results you want     Excellent.  Yes, that's understandable.  Main thing is to realize that 'tree' want's two arguments there, not the intuitive single argument. Roman: You can do the reverse transformation--from array to scalar--like this: local array=(...) local scalar=${(@q)array} ... Finally I see a use of '(q)' that makes sense to me.