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


Groups > gnu.bash.bug > #15229 > unrolled thread

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

Started byThomas Deutschmann <whissi@gentoo.org>
First post2019-07-24 17:23 +0200
Last post2019-07-24 17:23 +0200
Articles 1 — 1 participant

Back to article view | Back to gnu.bash.bug

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH] Fix \H: Use getaddrinfo to get full hostname Thomas Deutschmann <whissi@gentoo.org> - 2019-07-24 17:23 +0200

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

FromThomas Deutschmann <whissi@gentoo.org>
Date2019-07-24 17:23 +0200
SubjectRe: [PATCH] Fix \H: Use getaddrinfo to get full hostname
Message-ID<mailman.2144.1563981824.2688.bug-bash@gnu.org>

[Multipart message — attachments visible in raw view] — view raw

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_?

Thanks.


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

[toc] | [standalone]


Back to top | Article view | gnu.bash.bug


csiph-web