On Fri, Aug 4, 2017 at 6:58 PM, Johannes Schindelin <johannes.schinde...@gmx.de> wrote: > There is a very useful feature in Bash where you can redirect the trace > enabled by `set -x` to a file descriptor *different* than 2. This comes > in particularly handy when validating the error output of commands, say, > in Git's test suite, while tracing at the same time. > > It is such a useful feature, and very easily implemented. > > Signed-off-by: Johannes Schindelin <johannes.schinde...@gmx.de>
Um. May I ask for a test for what it does? By the way... > +#ifdef BASH_XTRACEFD > + xtracefd = lookupvar("BASH_XTRACEFD"); > + if (!xtracefd || (preverrout_fd = atoi(xtracefd)) < 0) > +#endif Please use #if BASH_XTRACEFD That way it would work if BASH_XTRACEFD macro is explicitly defined to 0. _______________________________________________ busybox mailing list busybox@busybox.net http://lists.busybox.net/mailman/listinfo/busybox