Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #15238 > unrolled thread
| Started by | Chet Ramey <chet.ramey@case.edu> |
|---|---|
| First post | 2019-07-24 14:45 -0400 |
| Last post | 2019-07-24 14:45 -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.
Re: [PATCH] Fix \H: Use getaddrinfo to get full hostname Chet Ramey <chet.ramey@case.edu> - 2019-07-24 14:45 -0400
| From | Chet Ramey <chet.ramey@case.edu> |
|---|---|
| Date | 2019-07-24 14:45 -0400 |
| Subject | Re: [PATCH] Fix \H: Use getaddrinfo to get full hostname |
| Message-ID | <mailman.2167.1563993932.2688.bug-bash@gnu.org> |
[Multipart message — attachments visible in raw view] — view raw
On 7/24/19 11:23 AM, Thomas Deutschmann wrote: > 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. :( This is how Mac OS X works in an enterprise environment (this one, at least). > 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. Users don't "put" the FQDN anywhere. I didn't do anything when setting up this system. This is my official hostname as set by enterprise DNS. > 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_? What does `unfiltered' mean that's different from what the man page says? I don't see the difference. I think the current implementation is fine, but you can easily use a shell variable and expand it in $PS1 if you want something other than what gethostname() gives you. 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 top | Article view | gnu.bash.bug
csiph-web