Version 0 of ambiguous result with "info hostname "

Updated 2010-04-08 09:25:38 by MaheshD

The issue is as below :

My machine :

Bash command : "hostname" returns - and ip-address is


Tclsh8.4 command : "info hostnam" returns - localhost.localdomain and ip-address is

Expected is the same behavior as the bash euqivalent "hostname".

Why is this ambiguity ? Is it not reliable to use "info hostname" ? If yes (not reliable), what is the equivalent command (other than hostname) ?