environment variable issue

Michel Leunen michel at nospam.please
Mon Sep 15 15:31:54 EDT 2008


Tim Chase a écrit :

> Your HOSTNAME variable hasn't been exported to subshells.  You can check 
> this by looking at the output of
> 
>   bash$ export -p
> 
> which will print all the variables that are exported.  I suspect you'll 
> see $USER in the list, but not $HOSTNAME

Actually HOSTNAME seems to be exported as well:

$ export -p | grep HOSTNAME
declare -x HOSTNAME="LinuxPC"

I don't know what to think of this but it's the beginning of an explanation.

Thanks,
Michel



-- 
Michel Leunen
http://linux.leunen.com



More information about the Python-list mailing list