[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: set -x 2> >( .. ) no more working ?
From: |
Chet Ramey |
Subject: |
Re: set -x 2> >( .. ) no more working ? |
Date: |
Wed, 2 Feb 2022 14:55:19 -0500 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.5.1 |
On 2/2/22 1:09 PM, Alex fxmbsw7 Ratchev wrote:
> i used set -x 2> >( .. ) to intercept and process set -x output
> i wanted to try to code a back tracer or something
> but .. it fails
> all output of set -x is displayed normally on terminal
> also 2>&1 therefore fails,
>
> what did change .. ?
Your memory? I'm sure that never worked.
The only way you're going to have a redirection that persists beyond
the command is to use `exec'. It won't work with `set'.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/