From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10759 invoked by alias); 27 May 2011 05:14:35 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 29393 Received: (qmail 19804 invoked from network); 27 May 2011 05:14:33 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.212.43 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=BCbTubDzeLz0gL9hDklJrxhdT5g27ojLS1gV/nt6Onw=; b=fncO90wshybxiGatyyBR1mS14owVupVWy5e4QXbelrTqlUpk+pfg5yV5d5SEiFvEr4 K4dIu/WQjdcifbXUrUtbRL99rFK4uwUFWqbuoYbONMx1WqMccGKe+N8jQvqn/GNKA3gI b6HI7F2LMMWELu1v/xE++u5Xk5S2jXkaSGNs8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=QA4N52oWdxfEDnciZ42IPVJAwtJrwgiZCeEjPM4CWhv1Tx4Ww5cpuPTzfT4k3TeIvz 3dL6imSOCYvLVAWI1apMVNd7Z7vNJRKaxhkgpbbZNAngLjJIzmAtUR6q0Px0U0eRvDod 11OOErLgX0TalVLutoNwmLBWIhNBelAfl0piI= MIME-Version: 1.0 In-Reply-To: <110526214445.ZM533@torch.brasslantern.com> References: <1306459987-18807-1-git-send-email-mikachu@gmail.com> <110526214445.ZM533@torch.brasslantern.com> Date: Fri, 27 May 2011 07:14:28 +0200 Message-ID: Subject: Re: PATCH: clarify which quotation marks to note From: Mikael Magnusson To: Bart Schaefer Cc: zsh-workers@zsh.org Content-Type: text/plain; charset=UTF-8 On 27 May 2011 06:44, Bart Schaefer wrote: > On May 27, 3:33am, Mikael Magnusson wrote: > } Subject: PATCH: clarify which quotation marks to note > } > } I found the "Note the quotation marks" remark a bit confusing when I > } read this. > > I still find it confusing. :-} > > } the expression `tt(*(e:'reply=(${REPLY}{1,2})':))' will cause the words > } +`tt(lonely1)' and `tt(lonely2)' to be inserted into the command line. Note > } +the quotation marks in the expression. > > Note the single quotes inside the colons in the expression. > > Perhaps?? Maybe we could say "The var(string) is quoted as noted above", referring to this earlier sentence Note that expansions must be quoted in the var(string) to prevent them from being expanded before globbing is done. Which is not incorrect, but you need to quote other things too, *(e:):) is an error for example (a different error than *(e:\):) ). It's weird how long you can stare at some stupid little thing and not come up with a good concise way to write it down. Do we really need to note the quotes at all? We already said that var(string) has to be quoted. :) -- Mikael Magnusson