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 7488 invoked from network); 19 Nov 2022 17:03:12 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 19 Nov 2022 17:03:12 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1668877392; b=pVAr1p4YJIMm7ZD8et1x8jk7GhbeSnDc9vhAjttyyT3a42EbQbCkb4gzPEvBVHmA0b3jsJ9t1+ UVPWiLnMmwxYk69iVCM2fVXGtkzP34Rd2gQG47CJbm5d+QatcvnadGjrsoOc3g3p7pl08bOOv/ RRgzWnUhEaNXOuNd4LBf7ViYI6CJ1EytcAlLZVqqGdBDgO/qopIk/ktsxuMQ99p4hS2ABN/mki FJy5GCrlROdqHgQaRDnnhHdb88fPU5TPoTtf9NZKkb6StRJF3Sqvjctv7b4sHHNJq/2oGSz9l3 8vcWPM6CqeoAb0zeEtIvrzzvBNVZp7vo9+sGtgCIuCOhTg==; 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=1668877392; bh=ogoDwtk5Gl5lJzN0Wb6bFTjACnP34efhO2ZDM+rQlDg=; 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=qA65XAU48kDojMloiPqWTZr29XWM0kBv62P/jfrI0m9eH/+s648h8LMWPyMu+56wUALJtc43w/ m5d+yKRJ9pv9B6NAGwucK9pzJxlbdsKg4wjHW+RRIFCXAGmSQym2hPap1lC0STmZyyREMj8vBO tMQuArXjSicy5mQt33KUpIrjZrovykXjrbW09Ew4yTlI103Tp2GICHlZc35M7znJF+0Y+G3Wdy FS2jL541uNf0fAJz1OUUcNCt1GuWLbjgik+e4X6zPRpCjO0Bx9FUxbLNR5WcINKs84CL+sZ5e2 cNVE9KW0zvR2yJ4V0VmOdD5Mr1Gz7yINEGpsahoxqlh6UQ==; 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=ADTB7JNlCa8FQoNO1wxW+vuGKllnFViri3fdujgxzbY=; b=RHSYMatcO0aSmPR5iRYs8mpVk+ tyZv9ZBceXz9qBDdSIC5ItXj1IswJUo2XNEIRpaqa/BuVT1IEZAxmGi7a7d9MxZCf++m9zWSr6QNG TWVGZybVi6DlfhI6tjTs6Xg2Ma7Xn3Uc4IrwZsC/E9vUPdKfcjt7Ha/yf3tpVFu78nKbGpBNhgOXK p2JSwbiiOV2HiOjP3E5jCmk+/Pfg1Xx++CbHzvNmo7nk4TxWJNbjVYrVRjpuQV7jtuCqp7x/KRnCU SD9WDYhroCgSOtuhOU/55Dr4Tv7iKOpTiBcONZPGktuFLoUUsqbeN36C7wZBF3gfYRWcgN1hwcmDF qSA9KhEA==; Received: by zero.zsh.org with local id 1owRFI-0005eJ-Ae; Sat, 19 Nov 2022 17:03:12 +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]:46803) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128) id 1owREm-0004zt-DG; Sat, 19 Nov 2022 17:02:40 +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 <0RLL00EWVTO3T2P0@mta04.eastlink.ca> for zsh-users@zsh.org; Sat, 19 Nov 2022 13:02:39 -0400 (AST) Received: from [192.168.0.4] ([24.207.18.108]) by Eastlink with ESMTPSA id wREkoNTC1kffJwREkoxU6x; Sat, 19 Nov 2022 13:02:39 -0400 X-Authority-Analysis: v=2.4 cv=Lbf6qBTi c=1 sm=1 tr=0 ts=63790c2f a=xN66ZtSbq5jdJYpBp7G/jQ==:117 a=xN66ZtSbq5jdJYpBp7G/jQ==:17 a=IkcTkHD0fZMA:10 a=Rb_DfA4bSow9NbBI3UMA:9 a=QEXdDO2ut3YA:10 X-Vade-Cause: gggruggvucftvghtrhhoucdtuddrgedvgedrhedvgdelkecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfgtefuvffnkffpmfdpqfgfvfenuceurghilhhouhhtmecufedttdenucenucfjughrpefkffggfgfuvfhfhfgjtgfgsehtkeertddtfeejnecuhfhrohhmpeftrgihucetnhgurhgvfihsuceorhgrhigrnhgurhgvfihssegvrghsthhlihhnkhdrtggrqeenucggtffrrghtthgvrhhnpeeitdejffevgfdtheeggfetkeeugeegieetuddtvddvudetteffvdevlefgueekudenucfkphepvdegrddvtdejrddukedruddtkeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpedvgedrvddtjedrudekrddutdekpdhhvghloheplgduledvrdduieekrddtrdegngdpmhgrihhlfhhrohhmpehrrgihrghnughrvgifshesvggrshhtlhhinhhkrdgtrgdpnhgspghrtghpthhtohepvddprhgtphhtthhopeerredprhgtphhtthhopeiishhhqdhushgvrhhsseiishhhrdhorhhgpdhgvghtqdgkihhprfgrshhsfigupehtrhhuvg X-Vade-Score: 0 X-Vade-State: 0 X-EL-AUTH: rayandrews@eastlink.ca Message-id: Date: Sat, 19 Nov 2022 09:02:38 -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: From: Ray Andrews In-reply-to: Content-type: text/plain; charset=UTF-8; format=flowed Content-transfer-encoding: 8bit X-Seq: 28412 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 06:43, Roman Perepelitsa wrote: > With the default options this this the same as this: > tree '-L 2' > > Is it clear why it doesn't work? Actually yes ... but that was only my last effort.  With double quotes the error is: >  -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 expect to work.  I'm pretty sure this is an invisible grouping of arguments but I don't know what to do about it other than 'eval'.  I'm thinking that when tree sees: " -L 2 " it's seeing that not as a switch followed by a number, but as a single syntactic element which it's trying to interpret as a directory name.  Which sorta is semi-understandable since the quotes make " -L 2 " into 'one thing' whereas tree want's it to be 'two things'.  How to drop that variable in there so that tree is happy with it?  Is this perhaps a bit of crabbiness on the part of tree?  Should " -L 2 " be an array?? Sheesh, that might keep tree happy.  And ...     local level=( -L 2 )     tree $level ... Success!  Ha! You give me enough feedback that I can talk myself out of the problem :-)