Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Block comments ala Ray
- X-seq: zsh-workers 48077
- From: Juergen Christoffel <jc+zsh@xxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: Block comments ala Ray
- Date: Tue, 16 Feb 2021 22:35:01 +0100
- Archived-at: <https://zsh.org/workers/48077>
- Archived-at: <http://www.zsh.org/sympa/arcsearch_id/zsh-workers/2021-02/20210216213501.GA12788%40unser.net>
- In-reply-to: <20210216172132.GA439689@zira.vinc17.org>
- List-id: <zsh-workers.zsh.org>
- References: <CAH+w=7YZREq7FbJCCoWoJ-vQ7+P5Z=_mKB-aStoMiBRupqD_wA@mail.gmail.com> <20210216153049.GA8000@unser.net> <20210216172132.GA439689@zira.vinc17.org>
On Tue, Feb 16, 2021 at 06:21:32PM +0100, Vincent Lefevre wrote:
This could break existing scripts... unless a specific switch is added
(but more generally, you could imagine a feature that would optionally
preprocess the script before it is parsed by zsh).
Correct, this might need a specific switch. That would suit me fine, e.g.
something (similar to perl, again ;-) like
require 5.16
or even better
require zsh 5.3.1
which might later on hopefully lead to some shared solution like
require bash 4.3.2
and could replace incantations like
if [[ -z "$ZSH_VERSION" ]] ; then
echo $0: need zsh && exit 1
fi
which I currently use to make sure certain scripts are not executed with
bash.
--jc
--
I love deadlines. I love the whooshing sound they make as they fly by.
-- Douglas Adams
Messages sorted by:
Reverse Date,
Date,
Thread,
Author