[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

From: Thomas Deutschmann
Subject: Re: [PATCH] Fix \H: Use getaddrinfo to get full hostname
Date: Wed, 24 Jul 2019 17:23:27 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2

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.

Anyway, back to bash:

So you are rejecting this patch, right? Maybe update man page at least
to clarify that "\H" in contrast to "\h" is supposed to return the same
value but _unfiltered_?


Thomas Deutschmann / Gentoo Linux Developer
C4DD 695F A713 8F24 2AA1 5638 5849 7EE5 1D5D 74A5

Attachment: signature.asc
Description: OpenPGP digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]