[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: set -x 2> >( .. ) no more working ?
From: |
Greg Wooledge |
Subject: |
Re: set -x 2> >( .. ) no more working ? |
Date: |
Wed, 2 Feb 2022 14:42:23 -0500 |
On Wed, Feb 02, 2022 at 07:09:36PM +0100, Alex fxmbsw7 Ratchev wrote:
> i used set -x 2> >( .. ) to intercept and process set -x output
https://mywiki.wooledge.org/BashFAQ/106
It needs to be two commands. ALSO, the part that's inside >() needs to
be redirected somewhere, either to a file, or back to stderr.
set -x
exec 2> >(myfilter >&2)
or
set -x
exec 2> >(grep -i error >> ~/errors)