From: Peter Stephenson <p.w.stephenson@ntlworld.com>
To: Zsh Users <zsh-users@zsh.org>
Subject: Re: print built-in doesn't print this.
Date: Mon, 15 Nov 2021 16:46:32 +0000 (GMT) [thread overview]
Message-ID: <1736964665.233826.1636994792308@mail2.virginmedia.com> (raw)
In-Reply-To: <CAH+w=7aWxEhGS0980jYqXxoV+B9AfZUXidF=tYm5UtW7-qKGjw@mail.gmail.com>
> On 15 November 2021 at 16:31 Bart Schaefer <schaefer@brasslantern.com> wrote:
> On Sun, Nov 14, 2021 at 11:33 AM Peter Stephenson
> <p.w.stephenson@ntlworld.com> 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
next prev parent reply other threads:[~2021-11-15 16:50 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-14 19:19 jdh
2021-11-14 19:27 ` Norbert Zeh
2021-11-14 19:29 ` Peter Stephenson
2021-11-15 5:30 ` Mikael Magnusson
2021-11-15 16:31 ` Bart Schaefer
2021-11-15 16:46 ` Peter Stephenson [this message]
2021-11-14 19:29 ` Roman Perepelitsa
2021-11-14 19:33 ` Lawrence Velázquez
2021-11-14 21:20 ` zzapper
2021-11-15 9:50 ` zzapper
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1736964665.233826.1636994792308@mail2.virginmedia.com \
--to=p.w.stephenson@ntlworld.com \
--cc=zsh-users@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).