replace all export -a with typeset -ax, update #3142