diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2017-08-29 09:24:29 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2017-08-29 09:24:29 (GMT) |
commit | 908e496e8fd9227aa05156e3e9f1f2801ce14e16 (patch) | |
tree | 14d64d94d7e2c57c6a5d0337b7da91d700c8cc32 /generic/tclPipe.c | |
parent | 3728831c291bc29f51ee826731bd206f28687d0d (diff) | |
download | tcl-908e496e8fd9227aa05156e3e9f1f2801ce14e16.zip tcl-908e496e8fd9227aa05156e3e9f1f2801ce14e16.tar.gz tcl-908e496e8fd9227aa05156e3e9f1f2801ce14e16.tar.bz2 |
(cherry-pick): Fix [b50fb21410dababca95baa122964b2e312cb9d8a|b50fb214] : exec redirection to append stdout and stderr to the same file
Diffstat (limited to 'generic/tclPipe.c')
-rw-r--r-- | generic/tclPipe.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/generic/tclPipe.c b/generic/tclPipe.c index 83fb818..2ecc5a6 100644 --- a/generic/tclPipe.c +++ b/generic/tclPipe.c @@ -668,7 +668,13 @@ TclCreatePipeline( if (*p == '>') { p++; atOK = 0; - flags = O_WRONLY | O_CREAT; + + /* + * Note that the O_APPEND flag only has an effect on POSIX + * platforms. On Windows, we just have to carry on regardless. + */ + + flags = O_WRONLY | O_CREAT | O_APPEND; } if (errorClose != 0) { errorClose = 0; |