diff -wur zsh-5.0.2.orig/Src/mkmakemod.sh zsh-5.0.2/Src/mkmakemod.sh --- zsh-5.0.2.orig/Src/mkmakemod.sh 2011-05-13 11:07:35.000000000 -0700 +++ zsh-5.0.2/Src/mkmakemod.sh 2013-09-14 17:30:18.000000000 -0700 @@ -94,7 +94,8 @@ trap "rm -f $the_subdir/${the_makefile}.in; exit 1" 1 2 15 echo "creating $the_subdir/${the_makefile}.in" - exec 3>&1 >$the_subdir/${the_makefile}.in + # Workaround for 475284 + exec {GEN_FILE}>&1 >$the_subdir/${the_makefile}.in echo "##### ${the_makefile}.in generated automatically by mkmakemod.sh" echo "##### DO NOT EDIT!" echo @@ -457,7 +458,7 @@ echo "##### End of ${the_makefile}.in" - exec >&3 3>&- + exec >&{GEN_FILE} {GEN_FILE}>&- fi