[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Send stderr to variable, but send stdout to screen?



Tony Heal wrote:
I have an error handling function that traps, reports and exits on an error.
My problem is that I want to do all of that and I want to still see stdout.

Try this:

$ errors=$(command 2>&1 1> $(tty))



Reply to: