From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19474 invoked by alias); 4 Dec 2014 05:06:56 -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: 19496 Received: (qmail 24349 invoked from network); 4 Dec 2014 05:06:43 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) 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.2 X-CMAE-Score: 0 X-CMAE-Analysis: v=2.1 cv=AKpDk7pY c=1 sm=1 tr=0 a=FT8er97JFeGWzr5TCOCO5w==:117 a=kj9zAlcOel0A:10 a=q2GGsy2AAAAA:8 a=oR5dmqMzAAAA:8 a=-9mUelKeXuEA:10 a=A92cGCtB03wA:10 a=iIjEg_i4D6ba8l77TeMA:9 a=CjuIK1q_8ugA:10 From: Bart Schaefer Message-id: <141203210607.ZM7622@torch.brasslantern.com> Date: Wed, 03 Dec 2014 21:06:07 -0800 In-reply-to: <547F9939.9060303@eastlink.ca> Comments: In reply to Ray Andrews "Re: triviality with prompts" (Dec 3, 3:14pm) References: <547E568C.6070607@eastlink.ca> <141202190200.ZM31930@torch.brasslantern.com> <547E9158.6050103@eastlink.ca> <9CD0DDE8-21AB-4EA3-A69F-9B338ECC83F1@macports.org> <547F385B.3070405@eastlink.ca> <20141203164353.GO23965@isis.sigpipe.cz> <547F441E.6060606@eastlink.ca> <547F9939.9060303@eastlink.ca> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-users@zsh.org Subject: Re: triviality with prompts MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On Dec 3, 3:14pm, Ray Andrews wrote: } Subject: Re: triviality with prompts } } \ } ' ' } " " } $' ' } $( ) } } ... all cross-pollinating each other in various ways, but is that it for } the main species? $( ) is substitution, not quoting. It is true that if you have both outer double quotes and a $( ) inside them, then the rules for parsing command substitution take over until the matching close-paren is found; but otherwise nothing is quoted differently just because it is inside a command substitution. } Oh, and of course there's the various flavorings like 'rc_quotes' and } I guess a few others like that. Tractable. The other major one is aritmetic evaluation in (( )) where everything behaves as if double quoted, and then there are the special cases in parameter subscript expressions, which can get a bit strange but in practice you'll almost never run into.