From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from fhigh-b1-smtp.messagingengine.com (fhigh-b1-smtp.messagingengine.com [202.12.124.152]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D5A8B248F7D for ; Mon, 12 May 2025 16:42:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=202.12.124.152 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747068134; cv=none; b=N4KVLokI18VQU+zpSOqMp0bi7lZuJCLT6qDu5WW92rBssRnWEZtTNde6hlWxNkQs6+QOdg4d5lnu/hRl6FREdIwm68gd6H9HAxKLU4QvbRv/vAdQEvtozV/yLiM7ywJ/TvL6mv5Fu/BtKeHQ3QShDFQcoYDxLHVRyEDPbW/FFIc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747068134; c=relaxed/simple; bh=efxIJjeZQh9vLLx0ihALVT7P1J4gvzcmLKOpk0bQKIo=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=oV0JH4PvDmVyyd9E5ujYOalGKUgPNb72hhg74HqXcPGv56/qHwqJQnsTjbFAVCSPgWkhzgUv6WmPjXKywWmSub7LF5q8beKnBMfeRqUktzcVWjf3FyIh1oXcMLwuwG9IUXaZM6jix0BDQ91J9uIoOqMYX2FR43PmjzNw/WzRiVk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=pobox.com; spf=pass smtp.mailfrom=pobox.com; dkim=pass (2048-bit key) header.d=pobox.com header.i=@pobox.com header.b=mK07YAFs; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=nNi+v0o0; arc=none smtp.client-ip=202.12.124.152 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=pobox.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pobox.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=pobox.com header.i=@pobox.com header.b="mK07YAFs"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="nNi+v0o0" Received: from phl-compute-02.internal (phl-compute-02.phl.internal [10.202.2.42]) by mailfhigh.stl.internal (Postfix) with ESMTP id 94F4D254010E; Mon, 12 May 2025 12:42:10 -0400 (EDT) Received: from phl-frontend-01 ([10.202.2.160]) by phl-compute-02.internal (MEProxy); Mon, 12 May 2025 12:42:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pobox.com; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm2; t=1747068130; x=1747154530; bh=q9u9IeySeL FRzioM9iT+M+qtoMxtWfZmyAC3iY78Sis=; b=mK07YAFsou9b+uCbIcCEtNJIFI 6cVbbLr7gbVhb6onUYkYcm6HUzwL3fGedBUlcVEIi5VxeFNdiXKCL6Jk0BfRjXyX vg170j0YkTrkeyS7RCoHc56mxU+TZdDz9wY+es5DfiXfz4cMHi9rB5iwSBEgM6dd MZx7tUNSbSba/fNv/33nZZ2uodKH4DyPdpAwCqLT5hcX9gTBhLQhsuZ4F0bRSKzK rfTf7YSrLjR0tcnnKO6gAWTtfgJ8pVFgNI8gdCa0TuofXAg7Q2blK8+bc62c18Ht 0hk2PViIqGGVuiYN8O+YPNYId9On0CTwiTqy3A1aheWyHQPBfBXm6dt0z/jw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1747068130; x=1747154530; bh=q9u9IeySeLFRzioM9iT+M+qtoMxtWfZmyAC 3iY78Sis=; b=nNi+v0o03gAk4PYtHLEBkRhDnBCI4VewosmkcGF9B0t3s9zKlgC 3pD+uuVmXNGbdTKUcxf0kNtHq+elNhlsTTUmvjuPupW8dwYE4n9+UDJGtpnzF6Vg 2JoqIk2DcylZXodB/vSwREGUWidlzQFIYSg7oLeu7Absm7A95zk3wrD7bX3cnYlE 0GgQmrbdQOT+LjsXLY+QWO5c+9/kHJtBug7cVEkoKSzRaDKhxC34+EYt9HfGdY9C aaN97L7fvWTdc2xWoB1VQ8Fh4O82rHFKTRuhHzQGBN1w/FlyD8UBZQxkU/Q93BgV R3jxhJH6AQyrhms8nbwEsygiV0/Xnj+o2aA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgdeftddujeeiucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggv pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpih gvnhhtshculddquddttddmnecujfgurhephffvvefujghffffkfgggtgesthdtredttder tdenucfhrhhomheplfhunhhiohcuvecujfgrmhgrnhhouceoghhithhsthgvrhesphhosg hogidrtghomheqnecuggftrfgrthhtvghrnhepfeevteetjeehueegffelvdetieevffeu feejleeuffetiefggfeftdfhfeeigeeinecuvehluhhsthgvrhfuihiivgeptdenucfrrg hrrghmpehmrghilhhfrhhomhepghhithhsthgvrhesphhosghogidrtghomhdpnhgspghr tghpthhtohepkedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepjhhulhhirghnse hsfigrghgvmhgrkhgvrhhsrdhorhhgpdhrtghpthhtohepghgrrhhgrgguihhthigrtdek sehlihhvvgdrtghomhdprhgtphhtthhopehgihhtsehvghgvrhdrkhgvrhhnvghlrdhorh hgpdhrtghpthhtohepshhunhhshhhinhgvsehsuhhnshhhihhnvggtohdrtghomhdprhgt phhtthhopehsrghnuggrlhhssegtrhhushhthihtohhothhhphgrshhtvgdrnhgvthdprh gtphhtthhopeiiihihrghoseguihhsrhhoohhtrdhorhhgpdhrtghpthhtohepkhhrihhs thhofhhfvghrhhgruhhgshgsrghkkhesfhgrshhtmhgrihhlrdgtohhmpdhrtghpthhtoh epghhithhsthgvrhesphhosghogidrtghomh X-ME-Proxy: Feedback-ID: if26b431b:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 12 May 2025 12:42:09 -0400 (EDT) From: Junio C Hamano To: "Julian Swagemakers" Cc: "Aditya Garg" , , "Eric Sunshine" , , "Zi Yao" , "Kristoffer Haugsbakk" Subject: Re: [PATCH v2] send-email: try to get fqdn by running hostname --fqdn on Linux and macOS In-Reply-To: (Julian Swagemakers's message of "Mon, 12 May 2025 09:46:05 +0200") References: Date: Mon, 12 May 2025 09:42:08 -0700 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Precedence: bulk X-Mailing-List: git@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain "Julian Swagemakers" writes: > There are multiple implementations of the hostname command, and they > don't all support `--fqdn`. For example this will not work on Alpine > Linux as well as macOS. > ... > All seem to support `-f` though, maybe that would be the better option. What makes me worried about such a proposed changes is if there are implementations that takes `-f` but uses it to mean something completely different from fqdn, and emits something that looks like a hostname but is not. At least an implementation that takes --fqdn without erroring out would try to give what this code wants to find out (or it is simply crazy), but -f does not feel specific enough.