From: Jonathan Nieder <jrnieder@gmail.com>
To: Jeremy Huddleston <jeremyhu@apple.com>
Cc: Thiago Farina <tfransosi@gmail.com>, git@vger.kernel.org
Subject: Re: [PATCH] Fallback on _NSGetExecutablePath to get the executable path if using argv[0] fails
Date: Mon, 29 Nov 2010 14:19:58 -0600 [thread overview]
Message-ID: <20101129201958.GA10334@burratino> (raw)
In-Reply-To: <BED9E026-6804-4ABF-A26D-8F20699BAD0B@apple.com>
Jeremy Huddleston wrote:
> On Nov 29, 2010, at 13:50, Jonathan Nieder wrote:
>> Jeremy Huddleston wrote:
>>> On Nov 29, 2010, at 12:12, Jonathan Nieder wrote:
>>>> The section "2) #ifdefs are ugly" of
>>>> linux-2.6/Documentation/SubmittingPatches explains the rationale.
>>>
>>> I agree, but I don't really see a way around it here since this API is specific to OS X.
>>
>> Did you actually read that section? :)
>
> Yes, but I don't have the time to "do it right" right now ... I'm
> contributing the patch that we are using back to the community in
> the spirit of OSS development, but I don't have the time resources
> currently to "do it right" at present. I'll come back to it once
> time allows if nobody else picks it up.
Okay. Thanks for reporting.
My guess is that the Windows version could be simplified, too, if
we introduce a function to get the path to the binary. On Linux
it should use "readlink /proc/$$/exe", on Darwin the function you
pointed to, on Win32 _pgmptr, as a fallback look for argv[0] in
$PATH if someone on another platform is interested.
Jonathan
next prev parent reply other threads:[~2010-11-29 20:20 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-29 16:57 [PATCH] Fallback on _NSGetExecutablePath to get the executable path if using argv[0] fails Jeremy Huddleston
2010-11-29 17:09 ` Thiago Farina
2010-11-29 17:12 ` Jonathan Nieder
2010-11-29 18:29 ` [PATCH updated] " Jeremy Huddleston
2010-11-29 18:49 ` Jonathan Nieder
2010-11-29 20:24 ` Junio C Hamano
2010-11-29 21:02 ` Jeremy Huddleston
2010-11-29 18:34 ` [PATCH] " Jeremy Huddleston
2010-11-29 18:50 ` Jonathan Nieder
2010-11-29 20:07 ` Jeremy Huddleston
2010-11-29 20:19 ` Jonathan Nieder [this message]
2010-11-29 23:13 ` Kevin Ballard
2010-12-03 7:42 ` Jonathan Nieder
2010-12-03 7:50 ` Kevin Ballard
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=20101129201958.GA10334@burratino \
--to=jrnieder@gmail.com \
--cc=git@vger.kernel.org \
--cc=jeremyhu@apple.com \
--cc=tfransosi@gmail.com \
/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.
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).