+2000-08-05 Eli Zaretskii <eliz@is.elta.co.il>
+
+ * fixinc/fixincl.c (fix_with_system): Pipe the output of
+ "external" fixes through `cat', to avoid truncating the input
+ file by redirection.
+
2000-08-21 Jakub Jelinek <jakub@redhat.com>
* config/i386/i386.md (lea_general_1): Copy insn condition to split
/* Don't use the "src > dstX; rm -f dst; mv -f dstX dst" trick:
dst is a temporary file anyway, so we know there's no other
file by that name; and DOS's system(3) doesn't mind to
- clobber existing file in redirection. Besides, with DOS 8+3
- limited file namespace, we can easily lose if dst already has
- an extension that is 3 or more characters long. */
- tSCC z_cmd_fmt[] = " %s > %s";
+ clobber existing file in redirection. Besides, with DOS 8+3
+ limited file namespace, we can easily lose if dst already has
+ an extension that is 3 or more characters long.
+ The following bizarre use of 'cat' only works on DOS boxes.
+ It is causing the file to be dropped into a temporary file for
+ 'cat' to read (pipes do not work on DOS). */
+ tSCC z_cmd_fmt[] = " %s | cat > %s";
tCC** ppArgs = p_fixd->patch_args;
argsize = sizeof( z_cmd_fmt ) + strlen( pz_temp_file )