Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #15230

Re: [PATCH] Fix \H: Use getaddrinfo to get full hostname

Path csiph.com!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail
From Greg Wooledge <wooledg@eeg.ccf.org>
Newsgroups gnu.bash.bug
Subject Re: [PATCH] Fix \H: Use getaddrinfo to get full hostname
Date Wed, 24 Jul 2019 11:32:06 -0400
Lines 35
Approved bug-bash@gnu.org
Message-ID <mailman.2145.1563982341.2688.bug-bash@gnu.org> (permalink)
References <20190724135835.110473-1-whissi@gentoo.org> <454afb04-c18a-1b82-d869-34539c194b3d@case.edu> <f1f2e8df-5921-b696-686b-de5aec362a25@gentoo.org> <20190724144629.GL1218@eeg.ccf.org> <571d32dc-3ad0-3c00-5d9b-82ace9c041ff@gentoo.org> <20190724153206.GM1218@eeg.ccf.org>
NNTP-Posting-Host lists.gnu.org
Mime-Version 1.0
Content-Type text/plain; charset=us-ascii
X-Trace usenet.stanford.edu 1563982342 1652 209.51.188.17 (24 Jul 2019 15:32:22 GMT)
X-Complaints-To action@cs.stanford.edu
Cc bug-bash@gnu.org
To Thomas Deutschmann <whissi@gentoo.org>
Envelope-to bug-bash@gnu.org
Mail-Followup-To Thomas Deutschmann <whissi@gentoo.org>, bug-bash@gnu.org
Content-Disposition inline
In-Reply-To <571d32dc-3ad0-3c00-5d9b-82ace9c041ff@gentoo.org>
User-Agent Mutt/1.10.1 (2018-07-13)
X-detected-operating-system by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From 139.137.100.1
X-BeenThere bug-bash@gnu.org
X-Mailman-Version 2.1.23
Precedence list
List-Id Bug reports for the GNU Bourne Again SHell <bug-bash.gnu.org>
List-Unsubscribe <https://lists.gnu.org/mailman/options/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=unsubscribe>
List-Archive <https://lists.gnu.org/archive/html/bug-bash>
List-Post <mailto:bug-bash@gnu.org>
List-Help <mailto:bug-bash-request@gnu.org?subject=help>
List-Subscribe <https://lists.gnu.org/mailman/listinfo/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=subscribe>
X-Mailman-Original-Message-ID <20190724153206.GM1218@eeg.ccf.org>
X-Mailman-Original-References <20190724135835.110473-1-whissi@gentoo.org> <454afb04-c18a-1b82-d869-34539c194b3d@case.edu> <f1f2e8df-5921-b696-686b-de5aec362a25@gentoo.org> <20190724144629.GL1218@eeg.ccf.org> <571d32dc-3ad0-3c00-5d9b-82ace9c041ff@gentoo.org>
Xref csiph.com gnu.bash.bug:15230

Show key headers only | View raw


On Wed, Jul 24, 2019 at 05:23:27PM +0200, Thomas Deutschmann wrote:
> On 2019-07-24 16:46, Greg Wooledge wrote:
> >> I hope you are not talking about putting FQDN into a file which is
> >> expecting hostname only...
> > 
> > Yes, many people do precisely that.  They configure their systems
> > so the "hostname" command returns an FQDN, as I showed above.  (Not
> > my design, not my choice.)
> 
> I consider this as misconfiguration. :(
> 
> I can't believe that we somehow encourage people to either do something
> wrong (put FQDN where just non-FQDN is expected and bypass DNS
> mechanism) or use $(hostname -f) in PS1 when they want FQDN.

Your perspective is too limited.  Linux-based systems are very popular,
but they're not the entire Unix world.

# hostname -f
# hostname
-f
# hostname minea.eeg.ccf.org
# 


Personally, I don't like hostname returning a FQDN, but many other
people *do*.  It's common.  When I work on a system that's set that
way, I leave it set that way.

It's so common that bash has two different PS1 escape sequences to
handle it.  Has had them for decades, as far as I know.

There is nothing "wrong" about this configuration.  I don't like it,
and you clearly don't like it, but our opinions only matter to us.

Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread


Thread

Re: [PATCH] Fix \H: Use getaddrinfo to get full hostname Greg Wooledge <wooledg@eeg.ccf.org> - 2019-07-24 11:32 -0400

csiph-web