Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] _make: target: handle "make -C dir"
- X-seq: zsh-workers 44704
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- Subject: Re: [PATCH] _make: target: handle "make -C dir"
- Date: Sat, 24 Aug 2019 20:49:03 +0200
- Cc: Daniel Hahler <genml+zsh-workers@xxxxxxxxxx>, zsh-workers@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=7QKmg2oRQ6Yp3s27+UZ2roqayjpyDOJI4sKSb1S4Epo=; b=gjcPIK7Yw+kncTMIGaqUzwTHcjfNOw38obDT9xUX5BwnpDsCJ28DGE6+tnhnQy0h2d MnDYLOmJVoFyhfWbwe1MILHRwhj1EO//auTvDfYvcX/YarIqRLqLCqz/u1AVxpQMauUK aigt3wpqFel3V6Gc4GDB4tUpyt++pB3suQdV3jG7jo711hJJpQr2abkckY2Zbha1wvLQ R41PJnKniQgbYh9Qy63NQUeJlMNgXgt3xcXUrNo4qszLOKoE4rzN+FLtRxWYdzZbmKYp icQiE27+qwPlLeFdX+HRD/MCOTm9VUNS/Ljjg1I1drd2kBDSNHGlxpC9JI/2SgBhxCq8 RV1g==
- In-reply-to: <d07df1d8-e72a-400d-98fc-82968bc387e5@www.fastmail.com>
- 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> <20190823044837.76ulv2oyrtr7xrzj@tarpaulin.shahaf.local2> <CAHYJk3RfbMsNAX0T5GG-nkVanvi3=cz-9V8--mgnTueC6pxy4w@mail.gmail.com> <d07df1d8-e72a-400d-98fc-82968bc387e5@www.fastmail.com>
On 8/24/19, Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx> wrote:
> Mikael Magnusson wrote on Fri, 23 Aug 2019 10:40 +00:00:
>> On 8/23/19, Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx> wrote:
>> > 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.
>>
>> I think you won't have much success running make in a deleted directory.
>
> I would, if it's been recreated:
>
> [[[
> % cd "$(mktemp -d)"
> % rm -rf $PWD
> % mkdir $PWD
> % printf 'all:\n\ttrue\n' > $PWD/Makefile
> % make -C $PWD
> make: getcwd: No such file or directory
> make: Entering directory '/tmp/tmp.ko7oZrXDP2'
> true
> make: Leaving directory '/tmp/tmp.ko7oZrXDP2'
> % echo $?
> 0
> %
> ]]]
I think we can safely ignore this workflow.
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author