diff options
author | hobbs <hobbs> | 2004-07-02 23:37:31 (GMT) |
---|---|---|
committer | hobbs <hobbs> | 2004-07-02 23:37:31 (GMT) |
commit | 80730d51bb16cc327537c776dddbee844fe55929 (patch) | |
tree | fe06028852dfb28f12402e1a8ec03ff9ee2d0e4d /tests | |
parent | b1e51a89ccaf8f50762b100a1546e71833768dab (diff) | |
download | tcl-80730d51bb16cc327537c776dddbee844fe55929.zip tcl-80730d51bb16cc327537c776dddbee844fe55929.tar.gz tcl-80730d51bb16cc327537c776dddbee844fe55929.tar.bz2 |
* generic/tclPipe.c (TclCreatePipeline): Add 2>@1 as a special
* tests/exec.test: case redir of stderr to the result output.
Diffstat (limited to 'tests')
-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 2da0b7e..e5c9bf7 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.16.2.2 2004/02/25 23:38:16 dgp Exp $ +# RCS: @(#) $Id: exec.test,v 1.16.2.3 2004/07/02 23:37:31 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] |