purge redundant code
[WIP] improve redirection
[WIP] improve redirection
[WIP] close_fds
[WIP] improve redirection
slightly changed
improve parse_redirection
fixed compile error
[WIP]
[WIP] improve redirection

    - enable swapping stdout with stderr
[WIP] fixed redirection
[WIP] trim trailing whitespace