Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: print built-in doesn't print this.



> 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