Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #15225
| From | Chet Ramey <chet.ramey@case.edu> |
|---|---|
| Newsgroups | gnu.bash.bug |
| Subject | Re: [PATCH] Fix \H: Use getaddrinfo to get full hostname |
| Date | 2019-07-24 10:27 -0400 |
| Message-ID | <mailman.2134.1563978436.2688.bug-bash@gnu.org> (permalink) |
| References | <20190724135835.110473-1-whissi@gentoo.org> <454afb04-c18a-1b82-d869-34539c194b3d@case.edu> |
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/
Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread
Re: [PATCH] Fix \H: Use getaddrinfo to get full hostname Chet Ramey <chet.ramey@case.edu> - 2019-07-24 10:27 -0400
csiph-web