add capability to bash `export`
Merge pull request #278 from jcouyang/export