Re: xtrace output on new file descriptor

2009-12-11 Thread Marc Herbert
Brian J. Murrell a écrit : > Is equally difficult? Do you mean "equally difficult" as in "impossible"? Then I would say no, it looks easier :-) > Or can I more easily play with FD duplication and redirection to > achieve that, even if it means adding a ">&word" at the end of things > I want on

Re: xtrace output on new file descriptor

2009-12-10 Thread Brian J. Murrell
On Thu, 2009-12-10 at 22:20 -0500, Chet Ramey wrote: > > Nothing good. Pity. > The next version of bash will allow you specify an arbitrary > file descriptor where the xtrace output will be written. Cool. I wonder how long it will take the distros to pick that up though. Sure, I could build

Re: xtrace output on new file descriptor

2009-12-10 Thread Chet Ramey
On 12/10/09 10:12 PM, Brian J. Murrell wrote: > I'm wondering if anyone has any tricks to preserve stderr on > filedescriptor 2 and get xtrace output on a different file descriptor. > > I've pulled hair trying to get the redirection right for this but just > come up with the right combination. I'