From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4419 invoked by alias); 30 Nov 2015 03:33:53 -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: 21015 Received: (qmail 20733 invoked from network); 30 Nov 2015 03:33:52 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.0 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= daniel.shahaf.name; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=eI/pT0IcVAlVg72Q abJbPew5q6E=; b=kx1jy3lCypABawKWP8tCHT+XRUxr4KuMcKyJ02wfabEcOhVn AdSza2ue4c9GoGzROXrPAUOV8ejY7KM2nMXlnXlHcJiBfHBY15kFordA795zryD+ GxtbnXxR8f0xbpwnwze5N8+TLVBUSbXkfM3lMF62/7YQx8GBfLnH1RmoU7Y= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=eI/pT0IcVAlVg72 QabJbPew5q6E=; b=bYJ6NVOixV70u17E9j6mDtrzuwBWWueBtKUr2WN65bqP8xx A+cc8wh8gZvAplTVnI0FyU0zm8VJLMvH8+s/cGK8IoyYk0Jm3I7xoX4o7yMO3Xot ethA1VfodrW6KHMSqkhcIPiI80S5iL6i341sbQsSW9/0VV1Hb4bK+CIlNs2Y= X-Sasl-enc: cPYIgSxuTZsY20QkejHWUjdvVAHj1ef4yMtByrM9oX/H 1448854431 Date: Mon, 30 Nov 2015 03:33:48 +0000 From: Daniel Shahaf To: Ray Andrews Cc: zsh-users@zsh.org Subject: Re: lexing Message-ID: <20151130033348.GJ2504@tarsus.local2> References: <565B18C6.6090707@eastlink.ca> <151129100735.ZM24525@torch.brasslantern.com> <565BB016.6020905@eastlink.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <565BB016.6020905@eastlink.ca> User-Agent: Mutt/1.5.21 (2010-09-15) Ray Andrews wrote on Sun, Nov 29, 2015 at 18:10:30 -0800: > On 11/29/2015 10:07 AM, Bart Schaefer wrote: > >The form you're using (#something), is only not-a-comment in pattern > >or filename-generation context, so $(# this IS a comment). > > When will I run out of things that astonish me about zsh syntax? > What sort of need would there be to put a comment inside " $(#...) " > ? So that's a comment but " (#b) " is not a comment ... sometimes, > but don't bet on it. For the same reason as always — to document things for the next reader: echo $( # Use a subshell because foo chokes if isatty(1) foo ) I don't think Bart mentioned the subshell syntax: ( # this is a comment echo 42 )