From: "Daniel Shahaf" <d.s@daniel.shahaf.name>
To: "Mikael Magnusson" <mikachu@gmail.com>
Cc: "Daniel Hahler" <genml+zsh-workers@thequod.de>, zsh-workers@zsh.org
Subject: Re: [PATCH] _make: target: handle "make -C dir"
Date: Sat, 24 Aug 2019 16:41:21 +0000 [thread overview]
Message-ID: <d07df1d8-e72a-400d-98fc-82968bc387e5@www.fastmail.com> (raw)
In-Reply-To: <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@daniel.shahaf.name> 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
%
]]]
next prev parent reply other threads:[~2019-08-24 16:42 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-08-22 6:37 Daniel Hahler
2019-08-23 4:48 ` Daniel Shahaf
2019-08-23 10:40 ` Mikael Magnusson
2019-08-24 16:41 ` Daniel Shahaf [this message]
2019-08-24 18:49 ` Mikael Magnusson
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=d07df1d8-e72a-400d-98fc-82968bc387e5@www.fastmail.com \
--to=d.s@daniel.shahaf.name \
--cc=genml+zsh-workers@thequod.de \
--cc=mikachu@gmail.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).