Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Block comments ala Ray
- X-seq: zsh-workers 48021
- From: Lawrence Velázquez <vq@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>, Stephane Chazelas <stephane@xxxxxxxxxxxx>
- Cc: zsh-workers@xxxxxxx
- Subject: Re: Block comments ala Ray
- Date: Fri, 12 Feb 2021 13:16:28 -0500
- Archived-at: <https://zsh.org/workers/48021>
- Archived-at: <http://www.zsh.org/sympa/arcsearch_id/zsh-workers/2021-02/B2B62C95-EEDF-442A-9ACA-75EE653CEB72%40larryv.me>
- In-reply-to: <CAH+w=7bLXK_rZPsx33BTyKb5Q43uPc3W4Ayf0A8Gfkik0W9r9A@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <CAH+w=7YZREq7FbJCCoWoJ-vQ7+P5Z=_mKB-aStoMiBRupqD_wA@mail.gmail.com> <CAN=4vMonpZHPSarsC778_GMbD_h4ioTwT+bTFU=FZ7_zbXaMqQ@mail.gmail.com> <CAH+w=7Zd2gY-s5T1dDNEEujAh6197MzrUD-iZrVwZLzD=L7xVQ@mail.gmail.com> <CAN=4vMoYj3WbBk3BL98buiYcf7rkLtw=b9v_f0p1C4zqYRB7xg@mail.gmail.com> <20210212074031.7746vg37xykniem5@chazelas.org> <CAH+w=7ZT3vgGVd_NAndnDt2zbLwGV3Pwu=7+utEuwvSkKd4jOA@mail.gmail.com> <20210212154547.iy35rp4ijaef22ld@chazelas.org> <CAH+w=7bLXK_rZPsx33BTyKb5Q43uPc3W4Ayf0A8Gfkik0W9r9A@mail.gmail.com>
> On Feb 12, 2021, at 11:55 AM, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
>
> On Fri, Feb 12, 2021 at 7:45 AM Stephane Chazelas <stephane@xxxxxxxxxxxx> wrote:
>>
>> 2021-02-12 07:30:23 -0800, Bart Schaefer:
>>> On Thu, Feb 11, 2021 at 11:40 PM Stephane Chazelas
>>> <stephane@xxxxxxxxxxxx> wrote:
>>>>
>>>> :||:<<'# some comment'
>>>
>>> That's exactly what the zsh-users discussion has been telling Ray he
>>> should not do, because at some point it's not going to work the way he
>>> expects.
>> [...]
>>
>> How so?
>
> What was said on zsh-users (not by me):
>
> "Here-documents are not comments, despite your best efforts to abuse
> them for that role."
This was me, addressing someone with shaky shell fundamentals who
was aliasing the here-document idiom and expecting it to behave
identically to real comments (discarded during lexing, no further
impact on the script).
Naturally, the remark is rather less applicable to someone who
remains aware of the nature and limitations of the idiom.
vq
Messages sorted by:
Reverse Date,
Date,
Thread,
Author