Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: syntactic trivia
- X-seq: zsh-users 26294
- From: Stephane Chazelas <stephane@xxxxxxxxxxxx>
- To: Ray Andrews <rayandrews@xxxxxxxxxxx>
- Cc: Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: syntactic trivia
- Date: Sat, 2 Jan 2021 15:32:17 +0000
- Archived-at: <https://zsh.org/users/26294>
- Archived-at: <http://www.zsh.org/sympa/arcsearch_id/zsh-users/2021-01/20210102153217.xkpqakxgh7ulikqr%40chazelas.org>
- In-reply-to: <565cd2e7-c999-5735-4089-a56870713432@eastlink.ca>
- List-id: <zsh-users.zsh.org>
- Mail-followup-to: Ray Andrews <rayandrews@xxxxxxxxxxx>, Zsh Users <zsh-users@xxxxxxx>
- References: <565cd2e7-c999-5735-4089-a56870713432@eastlink.ca>
2021-01-02 06:57:32 -0800, Ray Andrews:
[...]
> [ true ] && do-this\ # No comments here, please.
> || do-that
>
> I wonder how much trouble allowing that would be. Probably written in stone
> that it will never happen, still, it's an obvious exception and I'd guess it
> would only take five minutes to code, the parser just throws out any comment
> before throwing out the backslash and the newline. A tiny luxury.
[...]
You can write it:
true &&
do-this || # comment
do-that
\ followed by a space is a quoted space like ' '.
--
Stephane
Messages sorted by:
Reverse Date,
Date,
Thread,
Author