On Tue, 16 Dec 2003, Sergey Spiridonov wrote: > I found out, that $HOSTNAME is not exported by default in latest unstable: > > [EMAIL PROTECTED]:~$ echo $HOSTNAME > mars > [EMAIL PROTECTED]:~$ env | grep HOSTNAME > [EMAIL PROTECTED]:~$ > > Is it a bug?
It might be a change in behavior, but I woudn't call it a bug. $HOSTNAME seems to be a bash-specific variable. I use zsh, and I used to use tcsh, and neither of them have it (zsh has a similar $HOST, though). I don't think $HOSTNAME is considered a "standard" environment variable. You could export $HOSTNAME manually from something like .profile, I suppose. You might also just use /bin/hostname, or /bin/uname -n. - Aaron -- Aaron Hall : If you can't get something right, then the [EMAIL PROTECTED] : objective should be to do everything wrong : that it is possible to do wrong. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]