From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7873 invoked by alias); 28 Dec 2016 16:33:12 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 22303 Received: (qmail 23896 invoked from network); 28 Dec 2016 16:33:11 -0000 X-Qmail-Scanner-Diagnostics: from mta04.eastlink.ca by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(24.224.136.10):SA:0(-3.8/5.0):. Processed in 3.164797 secs); 28 Dec 2016 16:33:11 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-3.8 required=5.0 tests=RCVD_IN_DNSWL_LOW, RP_MATCHES_RCVD,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: rayandrews@eastlink.ca X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.eastlink.ca designates 24.224.136.10 as permitted sender) X-Authority-Analysis: v=2.2 cv=DOfN2GFb c=1 sm=1 tr=0 a=28Ntk8jg+Dho8ABWn/CRtA==:117 a=28Ntk8jg+Dho8ABWn/CRtA==:17 a=N659UExz7-8A:10 a=DVYOND_wgH34GC5QiY4A:9 a=pILNOxqGKmIA:10 X-EL-IP-NOAUTH: 24.207.16.108 Subject: Re: append to history entry? To: zsh-users@zsh.org References: <5288b537-f06a-d18a-60ea-1f962856c80c__41345.3811700039$1482803962$gmane$org@eastlink.ca> <20161227125530.GA4796@fujitsu.shahaf.local2> <161227080022.ZM519@torch.brasslantern.com> <99549001-5744-c36f-a4dc-404071aba08a@eastlink.ca> <161227110954.ZM1153@torch.brasslantern.com> <0a48db86-b41a-283c-8193-e2766aa5d30b@eastlink.ca> <161227155552.ZM2385@torch.brasslantern.com> <20161228052836.GA23153@fujitsu.shahaf.local2> From: Ray Andrews Message-id: <51b1807b-5d5b-dbef-f22d-17c275e11a91@eastlink.ca> Date: Wed, 28 Dec 2016 08:33:00 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.4.0 MIME-version: 1.0 In-reply-to: <20161228052836.GA23153@fujitsu.shahaf.local2> Content-type: text/plain; charset=windows-1252; format=flowed Content-transfer-encoding: 7bit On 27/12/16 09:28 PM, Daniel Shahaf wrote: ... > 2) When interpolating a variable into a string that will be parsed as > zsh code, escape that variable using ${${(q)}}. > > But yes, you have to do (2) yourself. > > I hope this helped... > > Cheers, > > Daniel Yes, it helps a great deal. I can't say I get it yet, but I see where you are coming from. Indeed, consistency must trump everything. " ${${(q)}} " seems byzantine but if it really is unavoidable -- it could not have been made simpler -- then that's the way it is. I don't care about the 'extra' keystrokes, I care that code helps you to do what you want to do, instead of fighting against you. And that it does what you might reasonably expect it to do. Transparency should be a virtue. When I see the necessity, I'll stop chafing. Anyway, I tax everyone's patience, so enough of this for now. > >>