diff options
author | hobbs <hobbs> | 2004-07-02 23:31:27 (GMT) |
---|---|---|
committer | hobbs <hobbs> | 2004-07-02 23:31:27 (GMT) |
commit | 2ab4506f34cae724a01ece9dc1c650e5a9b674e9 (patch) | |
tree | 2ab62cdf50305b836821c87186431bcd137a4c73 /tests/exec.test | |
parent | 1aa82f9d198e68705e1f5a9fd2ff6525e45fb0f4 (diff) | |
download | tcl-2ab4506f34cae724a01ece9dc1c650e5a9b674e9.zip tcl-2ab4506f34cae724a01ece9dc1c650e5a9b674e9.tar.gz tcl-2ab4506f34cae724a01ece9dc1c650e5a9b674e9.tar.bz2 |
* generic/tclPipe.c (TclCreatePipeline): applied TIP #202 patch
* doc/exec.n, tests/exec.test: that adds 2>@1 as a
special case redirection of stderr to the result output.
Diffstat (limited to 'tests/exec.test')
-rw-r--r-- | tests/exec.test | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/exec.test b/tests/exec.test index dce664f..930a4d3 100644 --- a/tests/exec.test +++ b/tests/exec.test @@ -11,7 +11,7 @@ # See the file "license.terms" for information on usage and redistribution # of this file, and for a DISCLAIMER OF ALL WARRANTIES. # -# RCS: @(#) $Id: exec.test,v 1.21 2004/06/23 15:36:55 dkf Exp $ +# RCS: @(#) $Id: exec.test,v 1.22 2004/07/02 23:31:30 hobbs Exp $ package require tcltest 2 namespace import -force ::tcltest::* @@ -541,6 +541,10 @@ test exec-15.6 {standard error redirection} {exec stdio} { >& "$path(gorp.file)" 2> "$path(gorp.file2)" | [interpreter] "$path(echo)" biz baz list [exec [interpreter] "$path(cat)" "$path(gorp.file)"] [exec [interpreter] "$path(cat)" "$path(gorp.file2)"] } {{biz baz} {foo bar}} +test exec-15.7 {standard error redirection 2>@1} {exec stdio} { + # This redirects stderr output into normal result output from exec + exec [interpreter] "$path(sh)" -c "\"$path(echo)\" foo bar 1>&2" 2>@1 +} {foo bar} test exec-16.1 {flush output before exec} {exec} { set f [open $path(gorp.file) w] |