Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] _make: target: handle "make -C dir"
- X-seq: zsh-workers 44700
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: Daniel Hahler <genml+zsh-workers@xxxxxxxxxx>
- Subject: Re: [PATCH] _make: target: handle "make -C dir"
- Date: Fri, 23 Aug 2019 04:48:37 +0000
- Cc: zsh-workers@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=date:from:to:cc:subject:message-id :references:mime-version:content-type:content-transfer-encoding :in-reply-to; s=fm1; bh=lShMDuWDgCPAUjuzxbn4X+l1eKlz4Q+wvhQUFRSZ Za4=; b=LV0UWiS9mfthITn20crLoXhCAnHK+kowYPpKDth857QYOvdUCZKwfKb0 HDlAJ9hKL3IaeMY5BbktG5gilnoJ1IayIczRniqboUn9NFoAYT/33i9iCD6GgFzZ OAYPihQFMLly6PmxwEwH+cCiSlGS0HvX5gjrEv6RjMkM/LbeGaW3Q3B9EIFZuHVw YivuSH3L1i0QdeOZKK2rbC4xvibfscl45JRGl2DfZJYd8RX1vxQwrH6dcGz2omVk 0NDNOCeBQ2BFgBW0Ps9EYS2eQLjQdnAyGAy+gIgvN7yAW34LfdVomdPAADF54TXJ St7EapPyaaHnVtuoQFmt0XlNnKetNw==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=lShMDuWDgCPAUjuzxbn4X+l1eKlz4Q+wvhQUFRSZZ a4=; b=khUzRIdlvpjygMTzKV/gW3dkOIgur9eJSCe2pkDlntXDgQUZXySH0nPI+ yye0kTLr41stRS+TMET820zROkob9ZbKoGH+jPPF5S4sNf9pNOwMp4FCne2v8B5u jqwPN8gmpHD1vrUPAIGwsmNOn0XjqawPsjVl5C/Gdjm4W9YXJmDSGiPtZBklI72o lRqlw/jaGg/BsNBPH8eSq22RdNRUUAI9CbexKQYA7fimyJ2izKGY5yfcdJj5W2wz lixAlMTE4fVjRp7eFaYLdz+9c+mJAz5wZJN8VQhkFuNrnwvSlBlffh9k1yaM1d6M jhLfqq6Yk3OU0QwwtTm3Xnn1OM/hg==
- In-reply-to: <20190822063753.25557-1-genml+zsh-workers@thequod.de>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20190822063753.25557-1-genml+zsh-workers@thequod.de>
Daniel Hahler wrote on Thu, Aug 22, 2019 at 08:37:53 +0200:
> `$basedir` defaults to `$PWD`, so it is ok to pass it always (I assume).
If the current working directory has been deleted, «$PWD» and «./» may refer to
different directories.
> - _make-parseMakefile < <(_call_program targets "$words[1]" -nsp --no-print-directory -f "$file" .PHONY 2> /dev/null)
> + _make-parseMakefile < <(_call_program targets "$words[1]" -C $basedir -nsp --no-print-directory -f "$file" .PHONY 2> /dev/null)
Should be «${(q)basedir}», I presume?
Preexisting issue: the other two parameter expansions should probably
use the «${(q)}» syntax too.
Preexisting issue: the last line of _make-findBasedir should use «print
-r», or better yet, assign to REPLY.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author