Previously, formatting my iMac's HDD and clean-installing OS X 10.6 on it, used to rename the computer name back to OS X default computer name which is derived from the user's first and last names.
Now today I formatted my iMac's HDD and clean-installed OS X 10.6 on it, and while opening the Sharing panel shows that the computer name has been reverted back to the default computer name, opening Terminal still shows my old computer name in the prompt but with all lowercase letters. Changing the computer name in the Sharing panel does not immediately change the computer name in the Terminal prompt anymore. I have to restart the iMac to see the changes. And even so, Terminal does shows the computer name in all lowercase letters.
Any ideas why is this happening?