[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Separating stdout and stderr

From: Ben Elliston
Subject: Re: Separating stdout and stderr
Date: Thu, 31 Mar 2016 21:20:38 +1100
User-agent: Mutt/1.5.23 (2014-03-12)

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:

    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.


Attachment: signature.asc
Description: Digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]