[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Fix \H: Use getaddrinfo to get full hostname
From: |
Chet Ramey |
Subject: |
Re: [PATCH] Fix \H: Use getaddrinfo to get full hostname |
Date: |
Wed, 24 Jul 2019 10:27:05 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 |
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/
- [PATCH] Fix \H: Use getaddrinfo to get full hostname, Thomas Deutschmann, 2019/07/24
- Re: [PATCH] Fix \H: Use getaddrinfo to get full hostname,
Chet Ramey <=
- Re: [PATCH] Fix \H: Use getaddrinfo to get full hostname, Thomas Deutschmann, 2019/07/24
- Re: [PATCH] Fix \H: Use getaddrinfo to get full hostname, Chet Ramey, 2019/07/24
- Re: [PATCH] Fix \H: Use getaddrinfo to get full hostname, Greg Wooledge, 2019/07/24
- Re: [PATCH] Fix \H: Use getaddrinfo to get full hostname, Thomas Deutschmann, 2019/07/24
- Re: [PATCH] Fix \H: Use getaddrinfo to get full hostname, Greg Wooledge, 2019/07/24
- Re: [PATCH] Fix \H: Use getaddrinfo to get full hostname, Thomas Deutschmann, 2019/07/24
- Re: [PATCH] Fix \H: Use getaddrinfo to get full hostname, Chet Ramey, 2019/07/24
- Re: [PATCH] Fix \H: Use getaddrinfo to get full hostname, L A Walsh, 2019/07/24