zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <p.w.stephenson@ntlworld.com>
To: Zsh hackers list <zsh-workers@zsh.org>
Subject: Re: globbing in the repeat-count word gives "illegal character"
Date: Thu, 26 Mar 2020 20:58:51 +0000	[thread overview]
Message-ID: <ea1f20c54141a30c09d9bc8b2243d1f000a90f0a.camel@ntlworld.com> (raw)
In-Reply-To: <20200325234655.786e8a88@tarpaulin.shahaf.local2>

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


      parent reply	other threads:[~2020-03-26 20:59 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-17  3:29 Daniel Shahaf
2020-03-17 18:37 ` Mikael Magnusson
2020-03-23  5:31   ` Daniel Shahaf
2020-03-23  6:53     ` Mikael Magnusson
2020-03-25 21:09       ` Peter Stephenson
     [not found]         ` <20200325234655.786e8a88@tarpaulin.shahaf.local2>
2020-03-26 20:58           ` Peter Stephenson [this message]

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=ea1f20c54141a30c09d9bc8b2243d1f000a90f0a.camel@ntlworld.com \
    --to=p.w.stephenson@ntlworld.com \
    --cc=zsh-workers@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).