[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: set -x 2> >( .. ) no more working ?
From: |
Alex fxmbsw7 Ratchev |
Subject: |
Re: set -x 2> >( .. ) no more working ? |
Date: |
Wed, 2 Feb 2022 21:35:45 +0100 |
oh yes in the worst case it was as greycat nicely showed
thanks
On Wed, Feb 2, 2022 at 9:33 PM Greg Wooledge <greg@wooledge.org> wrote:
>
> 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)
>