Re: [PATCH v2] send-email: try to get fqdn by running hostname --fqdn on Linux and macOS
- From
Junio C Hamano <gitster@pobox.com>
- Date
- May 12, 2025, 20:15 UTC
- Message-ID
- <xmqq1pstsi02.fsf@gitster.g>
- In-Reply-To
- <CAPig+cQCpWhJoouuzZu9HPy7Fj-T5RcNnAqryxQ=ATn37Os49Q@mail.gmail.com>
Eric Sunshine <sunshine@sunshineco.com> writes:
> The problem is not restricted only to macOS (and Alpine), but more > generally to all BSD-lineage `hostname` which does not understand > --fqdn but does understand -f.
True, but the proposed patch limits itself to
$^O eq 'linux' || $^O eq 'darwin'
for unfathomable reason, so BSD's are safe already ;-)