Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] _make: target: handle "make -C dir"
- X-seq: zsh-workers 44703
- From: "Daniel Shahaf" <d.s@xxxxxxxxxxxxxxxxxx>
- To: "Mikael Magnusson" <mikachu@xxxxxxxxx>
- Subject: Re: [PATCH] _make: target: handle "make -C dir"
- Date: Sat, 24 Aug 2019 16:41:21 +0000
- Cc: "Daniel Hahler" <genml+zsh-workers@xxxxxxxxxx>, zsh-workers@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=mime-version:message-id:in-reply-to :references:date:from:to:cc:subject:content-type :content-transfer-encoding; s=fm1; bh=Af7LOv7XiHhB27iOcMzQTspASJ jyWiXP18aFNgIiRdQ=; b=lgRMs3WTiKSkUzZGbNXBCMl+6E+OfExLocaj8PBHmJ ypVC23qEEHtbOVfbXNhjL8fwlpnZoviNBqQY9fgEl9oF4Sy4YdDZcklanoRYFRDv OImiFH9pWgKFJGmDOn6YE8e31amP6favcVbev3G1+rrM/9KzziYjIPwFEVUulpV6 P9KEQ/rCxpvu3FJCrjrF1Cguc0trYQMB2+BQ9HmvG5APfUtVHdgqoMlwVTykETOp vslC8L9VeJ2QEGckCBE3Xd8Ub4vlrefqHqk6Uvv5nJLs5d13PluaoIRfJGXS6Hls /hjVo2MHmJlw72obelwosxZlFdGsRITh6D3CqkgU0VvQ==
- 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=Af7LOv7XiHhB27iOcMzQTspASJjyWiXP18aFNgIiR dQ=; b=GOTLKCBCJQM0o/P746BKGqEoDmwm4EZk7qiHCyzhx5z09EoF4RbNUv7i/ 7CPkT2Nby1NIdS0crZAVkA4O3Ve7tgp4Jhfa1F+3HSHdwRbPDADua9JINUW7PUAe qSS8AoX2GRIBnGA84VawMEVJSLLFamEi9fkZmstcCqx9Jh6ii9gCH1/ZySbLSC42 DS3E5rYL0D1UbaB0MxN+wjzyAM19nvY/Ltl6J6bw+3TR3rIWg3A88tcRdfPFuSvS hEMYcNQIBroZKlh0TS2wnscFLmjJS0TJk8ItHY9CEjyG4mP6DhiqzrUzrXCft9bl LWU5OVHSHOIlCSRrYbXLF7zRjxuyQ==
- In-reply-to: <CAHYJk3RfbMsNAX0T5GG-nkVanvi3=cz-9V8--mgnTueC6pxy4w@mail.gmail.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>
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
%
]]]
Messages sorted by:
Reverse Date,
Date,
Thread,
Author