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


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

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

Started byChet Ramey <chet.ramey@case.edu>
First post2019-07-24 10:27 -0400
Last post2019-07-24 10:27 -0400
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 Chet Ramey <chet.ramey@case.edu> - 2019-07-24 10:27 -0400

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

FromChet Ramey <chet.ramey@case.edu>
Date2019-07-24 10:27 -0400
SubjectRe: [PATCH] Fix \H: Use getaddrinfo to get full hostname
Message-ID<mailman.2134.1563978436.2688.bug-bash@gnu.org>
On 7/24/19 9:58 AM, Thomas Deutschmann wrote:
> At the moment, \h and \H used in prompt PS1 or PS2 will actually return
> the same value while manpage claims that \h should return hostname up to
> the first '.' (like `hostname`) and \H should return full hostname (like
> `hostname -f`).

Thanks for the patch. This is system-dependent: there are systems, like
mine, where `hostname' returns the system's FQDN. It all depends on the
administrator's choices.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
		 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/

[toc] | [standalone]


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


csiph-web