environment variable issue

Michel Leunen michel at nospam.please
Mon Sep 15 21:31:54 CEST 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.


Michel Leunen

More information about the Python-list mailing list