HOSTNAME: environment variable or not?

bob fcsoft-3Emkkp+1Olsmp8TqCH86vg at public.gmane.org
Fri Feb 18 16:10:29 UTC 2005


On my Redhat system HOSTNAME is an exported environment variable.  ie.

	echo $HOSTNAME

returns with a value.

On a Debian system I've been working with HOSTNAME is not an exported 
environment variable.   ie.

	export | less

doesn't show it.   Nor does the C function getenv("HOSTNAME") pick it up.   
Interestingly

	echo $HOSTNAME

does?

I'm confused.    Can someone enlighten me as to this bash nuance.

bob
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list