[squeak-dev] finding the unix localhost name

tim Rowledge tim at rowledge.org
Thu Mar 30 16:53:50 UTC 2023



> On 2023-03-29, at 11:32 PM, Jakob Reschke <jakres+squeak at gmail.com> wrote:
> 
> Hi,
> 
> I cannot contribute to the concrete question, but note that a host can have multiple addresses and can therefore be reachable under multiple host names. Depending on what you try to do, it may matter and you better check that you actually get the name that you expect in your production environment.

Yup, we've managed to make it very complicated. I'm sure OS people had excellent reasons but, boy, I wish somebody had seen a way to make it simpler. Anyway, my hypothesis is that using the hostname command means that we (Squeak) do do at least as well as we (commandline) can sensibly manage. If it is really the case that the question isn't properly answerable then we ought to remove the related methods etc so as to remove a point of confusion and error.

tim
--
tim Rowledge; tim at rowledge.org; http://www.rowledge.org/tim
Strange OpCodes: START: Cancel preceding jobs in queue




More information about the Squeak-dev mailing list