zsh-workers
 help / color / mirror / code / Atom feed
From: Jun T <takimoto-j@kba.biglobe.ne.jp>
To: zsh-workers@zsh.org
Subject: Re: PATCH: correctly breaking out of tag loops
Date: Thu, 9 Nov 2017 12:36:29 +0900	[thread overview]
Message-ID: <FFCC2206-0AE1-4ACB-AF86-C91EE6F6476B@kba.biglobe.ne.jp> (raw)
In-Reply-To: <13362.1509570073@thecus.kiddle.eu>


> 2017/11/02 6:01, Oliver Kiddle <okiddle@yahoo.co.uk> wrote:
> 
> . _make also uses compadd -Q for targets which I can't
> quite believe is correct but I'm not going to touch that.

I don’t remember exactly why I added -Q, but probably I wanted to
take care of the following cases:

GNU make allows glob chars * ? and [..,] to appear even in targets
(although I don’t understand when such targets are useful).
For example,

ch[1-4].pdf:  deps ...
	recipe

For this kind of targets, make does globbing by itself, so what this target
means depends on which of ch[1-4].pdf you already have. On the following
command line

zsh% make ch[1-4].pdf

zsh also need to expand ch[1-4].pdf to the list of files. If you quote it

zsh% make ch\[1-4\].pdf

then you will get "No rule to make target `c[1-4].dat’.” (if you have
at least one of ch[1-4].pdf).







      reply	other threads:[~2017-11-09  4:17 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-01 21:01 Oliver Kiddle
2017-11-09  3:36 ` Jun T [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=FFCC2206-0AE1-4ACB-AF86-C91EE6F6476B@kba.biglobe.ne.jp \
    --to=takimoto-j@kba.biglobe.ne.jp \
    --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).