Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: print built-in doesn't print this.
- X-seq: zsh-users 27350
- From: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: print built-in doesn't print this.
- Date: Mon, 15 Nov 2021 16:46:32 +0000 (GMT)
- Archived-at: <https://zsh.org/users/27350>
- Importance: Medium
- In-reply-to: <CAH+w=7aWxEhGS0980jYqXxoV+B9AfZUXidF=tYm5UtW7-qKGjw@mail.gmail.com>
- List-id: <zsh-users.zsh.org>
- References: <20211114111957.4514@sachi> <9a8b02e1b7c697101e9be2738590cca99ac02470.camel@ntlworld.com> <CAH+w=7aWxEhGS0980jYqXxoV+B9AfZUXidF=tYm5UtW7-qKGjw@mail.gmail.com>
> On 15 November 2021 at 16:31 Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> On Sun, Nov 14, 2021 at 11:33 AM Peter Stephenson
> <p.w.stephenson@xxxxxxxxxxxx> wrote:
> >
> > print has standard option syntax, so you need to terminate
> > lists of options (even if they're empty) with "--".
>
> True statement but I think something else is going on here.
>
> % set "--------" a b c
> % print $argv
> a b c
>
> Zsh's generic option parser is consuming any number of consecutive
> hyphens as "--". That's probably not right.
Yes, I think it's always done that --- I've noted it before but generally
thought changing it is more likely to cause than fix problems, but that
doesn't mean I'm right.
pws
Messages sorted by:
Reverse Date,
Date,
Thread,
Author