Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: lexing
- X-seq: zsh-users 21015
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: Ray Andrews <rayandrews@xxxxxxxxxxx>
- Subject: Re: lexing
- Date: Mon, 30 Nov 2015 03:33:48 +0000
- Cc: zsh-users@xxxxxxx
- 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=
- In-reply-to: <565BB016.6020905@eastlink.ca>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <565B18C6.6090707@eastlink.ca> <151129100735.ZM24525@torch.brasslantern.com> <565BB016.6020905@eastlink.ca>
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 )
Messages sorted by:
Reverse Date,
Date,
Thread,
Author