From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29024 invoked by alias); 23 Dec 2010 19:39:01 -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: 28547 Received: (qmail 6949 invoked from network); 23 Dec 2010 19:38:49 -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=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received-SPF: none (ns1.primenet.com.au: domain at closedmail.com does not designate permitted sender hosts) From: Bart Schaefer Message-id: <101223113843.ZM23418@torch.brasslantern.com> Date: Thu, 23 Dec 2010 11:38:43 -0800 In-reply-to: <201012232041.34665@-zyx> Comments: In reply to ZyX "Re: ( Text in unknown character set UTF-8 not shown )" (Dec 23, 8:41pm) References: <101222231721.ZM21959@torch.brasslantern.com> <201012232041.34665@-zyx> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-workers@zsh.org Subject: Re: Why does $'' not expand inside ""? MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On Dec 23, 8:41pm, ZyX wrote: } Subject: Re: ( Text in unknown character set UTF-8 not shown ) Sorry about that weird subject. } > I believe the reasoning is that double-quote is allowed to appear } > inside $'...' and to expand $'...' inside double-quotes creates a } > parsing conflict. "How does this $'with " embeded' parse?" } "How does this $'with " embeded' parse?" } "Just like this `with " embedded` parse." Ah, but backticks were already present in the shell. The conflict is with "How did this $'with " embedded' parse before $'existed'?" } > The documentation for zsh tends to omit things that are assumed } > knowledge, particularly when a concept or feature originates from } > another source -- because if you didn't already know about it from } > the original source, why did you even think to use it? } But when I worked in bash I knew nothing about $'...' (because I } even did not know where to find documentation to tweak my inputrc). Entirely understandable nowadays, but much of the zsh doc was written when zsh was always the shell to which someone switched from another shell with which they were already familiar. That's not the case as often any more now that zsh is packaged with several OS dists, and is not the case for $'...', but the tendency to write that way remains.