Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: globbing in the repeat-count word gives "illegal character"
On Wed, 2020-03-25 at 23:46 +0000, Daniel Shahaf wrote:
> Peter Stephenson wrote on Wed, 25 Mar 2020 21:09 +0000:
> > This is straightforward. There is no reason to propagate tokens.
> >
> > +++ b/Test/A01grammar.ztst
> > @@ -557,6 +557,14 @@
> > + (setopt nonomatch
> > + repeat 2*2 print yeah)
> > +0:Tokens in repeat argument
> > +>yeah
> > +>yeah
> > +>yeah
> > +>yeah
> > +
>
> By the way, it behaves the same way under `setopt nomatch` too. I.e.,
> the repeat count word doesn't undergo globbing.
Right, it's a single word substitution, so I removed the option.
cheers
pws
Messages sorted by:
Reverse Date,
Date,
Thread,
Author