From: Aditya Garg Date: Tue, 13 May 2025 12:28:46 GMT Subject: Re: [PATCH v2] send-email: try to get fqdn by running hostname --fqdn on Linux and macOS Message-ID: In-Reply-To: > On 13 May 2025, at 1:45 AM, Junio C Hamano wrote: > > Eric Sunshine 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 ;-) Exactly. I had tested hostname -f on both macOS and Linux, but was lazy enough to not check --fqdn, thus resulting in a wrong patch. v3 and v4 should work properly. I'll also avoid laziness in the future.