Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Block comments ala Ray
- X-seq: zsh-workers 48049
- From: Vincent Lefevre <vincent@xxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: Block comments ala Ray
- Date: Mon, 15 Feb 2021 01:36:28 +0100
- Archived-at: <https://zsh.org/workers/48049>
- Archived-at: <http://www.zsh.org/sympa/arcsearch_id/zsh-workers/2021-02/20210215003628.GC2302738%40zira.vinc17.org>
- In-reply-to: <CAH+w=7Yydsx6QMhmKj5V_TX6-0sLKo9nNm3t07fsnhd5SKGj8Q@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- Mail-followup-to: zsh-workers@xxxxxxx
- References: <CAH+w=7YZREq7FbJCCoWoJ-vQ7+P5Z=_mKB-aStoMiBRupqD_wA@mail.gmail.com> <20210213083521.kv3y3qzfnaffflfh@chazelas.org> <CAH+w=7Yydsx6QMhmKj5V_TX6-0sLKo9nNm3t07fsnhd5SKGj8Q@mail.gmail.com>
On 2021-02-14 12:15:31 -0800, Bart Schaefer wrote:
> On Sat, Feb 13, 2021 at 12:35 AM Stephane Chazelas
> <stephane@xxxxxxxxxxxx> wrote:
> > Also consider
> > scripts that do:
> >
> > cat > script <<EOF
> > #! /bin/sh -
> > ...
> > EOF
> >
> > making it difficult to comment out those codes
>
> That one has some relevance, and argues for requiring #! to be
> followed immediately by a newline, if not also preceded by one.
This could be very confusing and error prone.
How about the "'' " prefix (two single quotes followed by a space)
to start and end a block comment?
I doubt that a command starting with these characters is something
useful. What follows could then be decided to allow nesting of block
comments.
--
Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author