|
2017-08-29
| ||
| 09:25 | • Ticket [b50fb21410] exec redirection to append stdout and stderr to the same fil... artifact: 88b9bf261c user: jan.nijtmans | |
| 09:24 | (cherry-pick): Fix [b50fb21410dababca95baa122964b2e312cb9d8a|b50fb214] : exec redirection to append ... check-in: 520999f475 user: jan.nijtmans tags: core-8-6-branch | |
|
2017-08-24
| ||
| 16:58 | • Closed ticket [b50fb21410]: exec redirection to append stdout and stderr to the ... artifact: 90d31fc2aa user: ferrieux | |
| 16:56 | Fix [b50fb214] : add to 2>> the same O_APPEND that was added to >> back in 2005. check-in: 844c1fa97f user: ferrieux tags: trunk | |
| 16:43 | • Ticket [b50fb21410] exec redirection to append stdout and stderr to the same fil... artifact: ec0211e161 user: ferrieux | |
| 09:31 | • New ticket [b50fb21410]. artifact: d6582cb760 user: pooryorick | |
exec redirection to append stdout and stderr to the same file
Closed / Fixedb50fb21410dababca95baa122964b2e312cb9d8aCreated 9 years agoUpdated 9 years ago
Descriptionwiki2017-08-24 09:31:53
In the following example both stdout and stderr are redirected to append to the
same file:
exec sh -c {echo hello; echo goodbye >&2; echo hello again; echo goodbye again >&2} >>output 2>>output
The file named "output" contains both "goodbye" lines, but no "hello lines".
Referenced by1
520999f475(cherry-pick): Fix [b50fb21410dababca95baa122964b2e312cb9d8a|b50fb214] : exec redirection to append stdout and stderr to the same file check-in2017-08-29 09:24:29
ferrieuxplain2017-08-24 16:43:14
Looks like commit 6c8172e1 added O_APPEND support only to ">>", overlooking "2>>". Duplicating the code.
ferrieuxplain2017-08-24 16:58:00
Fixed on trunk as http://core.tcl.tk/tcl/info/844c1fa97fb4dd24
jan.nijtmansplain2017-08-29 09:25:57
Backported to core-8-6-branch as well. Thanks!
Log in (anonymous is fine) to add a comment.