zsh-workers
 help / color / mirror / code / Atom feed
From: Mikael Magnusson <mikachu@gmail.com>
To: Daniel Shahaf <d.s@daniel.shahaf.name>
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 20:49:03 +0200	[thread overview]
Message-ID: <CAHYJk3RWribvnFOnjs==Z8YMfXMYZBQsi6Jb85qTLsoXhhJQfw@mail.gmail.com> (raw)
In-Reply-To: <d07df1d8-e72a-400d-98fc-82968bc387e5@www.fastmail.com>

On 8/24/19, Daniel Shahaf <d.s@daniel.shahaf.name> wrote:
> 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
> %
> ]]]

I think we can safely ignore this workflow.

-- 
Mikael Magnusson

      reply	other threads:[~2019-08-24 18:49 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
2019-08-24 18:49       ` Mikael Magnusson [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='CAHYJk3RWribvnFOnjs==Z8YMfXMYZBQsi6Jb85qTLsoXhhJQfw@mail.gmail.com' \
    --to=mikachu@gmail.com \
    --cc=d.s@daniel.shahaf.name \
    --cc=genml+zsh-workers@thequod.de \
    --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).