d92eec cd builtin could break IO redirection

Authored and Committed by mhlavink 4 years ago
    cd builtin could break IO redirection
    
    - fix segfault when handling a trap
    - exporting fixed with variable corrupted its data
    - and more fixes
    
        
file modified
+11 -11
file modified
+25 -33
file modified
+27 -0
file modified
+103 -56