note
Corion
<p>I just noticed [cpan://Shell::EnvImporter], which purports to support many different shells and even has code to output unexported shell variables. It sure is longer than the snippet presented here, but if you need to support more than one (non-<c>sh</c>) shell, it might be helpful.</p>
33628
33628