[8085] in athena10
Re: bash hostname \h in all caps
daemon@ATHENA.MIT.EDU (Jonathan Reed)
Mon Aug 1 21:39:38 2011
Mime-Version: 1.0 (Apple Message framework v1084)
Content-Type: text/plain; charset=us-ascii
From: Jonathan Reed <jdreed@MIT.EDU>
In-Reply-To: <F1767C2D-5901-4CF3-AB4D-C73C75D50EA6@mit.edu>
Date: Mon, 1 Aug 2011 21:39:29 -0400
Cc: Ken T Takusagawa <kenta@mit.edu>, debathena@mit.edu
Message-Id: <6CE76D44-D6DF-4A09-805F-CF099B573EBD@mit.edu>
To: Geoffrey Thomas <geofft@mit.edu>
Content-Transfer-Encoding: 8bit
I have opened #1002 for this. Bikeshedding should happen here, suggestions for implementation should go in the ticket.
-Jon
On Aug 1, 2011, at 9:29 PM, Jonathan Reed wrote:
> *shrug*. I'm not really interested in pursuing a change to the DNS infrastructure for something purely aesthetic. I'd consider adding code to stage2 to lowercase them, but that's going to be hard, because it snarfs them from the preseed values (and we definitely preseed a lowercase value).
>
> We could frob /etc/hostname in the postinstall, but it's not at all clear to me that it's Debathena's job to enforce lowercase hostnames.
>
> -Jon
>
> On Aug 1, 2011, at 9:10 PM, Geoffrey Thomas wrote:
>
>> The installer may canonicalize them, but it certainly doesn't uppercase them. That's MIT DNS. And we do have some code to lowercase them; I think this may have broken when we introduced the stage2.
>>
>> (It'd be nice to get that fixed, but I dunno who to talk to about that...)
>>
>> --
>> Geoffrey Thomas
>> geofft@mit.edu
>>
>> On Mon, 1 Aug 2011, Jonathan Reed wrote:
>>
>>> This is not necessarily a bug. The stock installer canonicalizes hostnames and uppercases them.
>>>
>>> Sent from my mobile device
>>>
>>> On Aug 1, 2011, at 7:16 PM, Ken T Takusagawa <kenta@MIT.EDU> wrote:
>>>
>>>> On SIPB's Natty machine (w-a-thornhump-iii), I have "\h" in
>>>> my bash PS1 prompt. This gets rendered in ALL-CAPS, which
>>>> is a change in behavior from other machines.
>>>>
>>>> --ken
>>>>
>>>> --
>>>> Sent from a Dell 1950 8 CPU 32 GB RAM
>>>
>