bugfix when redirecting stderr to stdout
bugfix when redirecting stderr to stdout

ppannuto/sh,twocngdagz/sh,amoffat/sh,rsmith31415/sh,z-fork/sh,amoffat/sh,germangh/sh,hacosta/python-sh,achernet/sh,pombredanne/sh,Stupeflix/sh,hacosta/python-sh,jakirkham/sh,simudream/sh,rdhyee/sh,pdelong42/sh,lwgarmstrong/sh