Re: Separating stdout and stderr

Ben Elliston <[email protected]>
Newsgroups gmane.comp.sysutils.dejagnu.general
Message-ID <[email protected]>
On Thu, Mar 31, 2016 at 12:11:59PM +0200, Christophe Lyon wrote:

> But since we currently have "|&cat", we do redirect stderr, so the
> "and that standard error is not redirected" claude above is not
> fulfilled. Do you know what happens in this case?

No, but I would suggest that it is cleaner and more portable to use
Tcl exec's own way of doing this:

2>@1
    Standard error from all commands in the pipeline is redirected to
    the command result. This operator is only valid at the end of the
    command pipeline.

This is used like an option, before the actual command.

Give that a go. It might work better.

Ben

_______________________________________________
DejaGnu mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/dejagnu
signature.asc (application/pgp-signature, 811 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIVAwUBVvz59XY2KIi1WYjUAQgluBAAxZDpgwHYFM8dbmDleM+QF7vkzdHOC9fp
FUu//G3tUaM6qEY9jsEBaA+U1PcnnFPBxYhrXzYFgb9UXpcE2izVn3b06RJ6v7fZ
ct2ydJnRPSp/rnto9meS6pvHoM6fSM7gQHvkZzMj3zdaZ9GWZF7Zpp9y2BP1nIx1
/LObzsq94WGehr7uMVJnRWblbhtYPVtfQqV0f/AKgTZImqoIJenA8QTzKnfYgYu0
BBTtOxdP07slvtNg9h3tIM6tpfb800d5T616qZwDNaq/jnRD5iTX2h0RyuZI5BUB
T0WWcAn+GzmbliDCrkakCYhV6bCpmPcl6VWmh1O2bXtKbj6L4L2m7ti8Es27yxJj
WmSmR7lbBHbPbYhgjKE2lpC0Aj/pqdzTQwmNueoUU2jieFp+6C63AgtApmrSFvlD
JA+yLVuZzLfLpNhVVZDRzkYiVYREjYVSgcW0FGplIRWgpfGrGR/Uu7je44oK4G5o
U6mo9UDmOLEkWdlU1pA8ASANjGlvu/R/fHc1BDmpaeAG+6EQek1EabS9sd45nCNe
7MCfShA2vOxAJ2moW36eDEI/Je7T0FvfmICyfkkWSDHhBwzwqrSwo2AUHVMVCrnc
Udpe9hanE3BREGUYiJPhVywL8B5papdsQlMfGJBmZsgWJMTTh+x04Mjs3r6ClxBQ
osiB04c/7s4=
=PfmR
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.