declare -a is used for arrays when declare -p dumps the configuration. However when pgenv_configuration_read gets back the configuration, variables becomes locally scoped (see bash -c "help declare"). One solution could be to usedeclare -gto make variables globals, but this does not works on OSX. Removingdeclare -afrom arrays seems to make the variable global even if noEXPORTis issued. As a possible compatibility statement, theEXPORT` after each variable is left in place.
declare -a
is used for arrays whendeclare -p
dumps the configuration. However whenpgenv_configuration_read
gets back the configuration, variables becomes locally scoped (seebash -c "help declare"). One solution could be to use
declare -gto make variables globals, but this does not works on OSX. Removing
declare -afrom arrays seems to make the variable global even if no
EXPORTis issued. As a possible compatibility statement, the
EXPORT` after each variable is left in place.Close #56