This one\'s been bugging me for a while now. Is it possible to redirect stdout and stderr to both the terminal output and to a program?
stdout
stderr
Is it possible to redirect stdout and stderr to both the terminal output and to a program?
I'm not sure how useful it is to combine stdout and stderr on the input to an editor, but does omething like this do what you need?
input_prog 2>&1 | tee /dev/tty | my_editor