Blame SOURCES/ksh-20120801-filecomsubst.patch

61d8f4
diff -up ksh-20120801/src/cmd/ksh93/sh/io.c.tryfix01 ksh-20120801/src/cmd/ksh93/sh/io.c
61d8f4
--- ksh-20120801/src/cmd/ksh93/sh/io.c.tryfix01	2014-02-26 16:15:52.355391420 +0100
61d8f4
+++ ksh-20120801/src/cmd/ksh93/sh/io.c	2014-02-26 16:23:55.588148801 +0100
61d8f4
@@ -1326,6 +1326,7 @@ int	sh_redirect(Shell_t *shp,struct iono
61d8f4
 				if(flag==SH_SHOWME)
61d8f4
 					goto traceit;
61d8f4
 				fd=sh_chkopen(fname);
61d8f4
+				fd=sh_iomovefd(fd);
61d8f4
 			}
61d8f4
 			else if(sh_isoption(SH_RESTRICTED))
61d8f4
 				errormsg(SH_DICT,ERROR_exit(1),e_restricted,fname);