On 7/21/06, James Lockie <[EMAIL PROTECTED]> wrote:
How do I redirect the error from an emerge? I did 'emerge system 2>&1 >t' and that does most of it but it misses the actual error message.
2>&1 >foo is the wrong syntax for what you want. This first copies stderr to stdout, and the second part redirects stdout to a file, but stderr is still going to the file descriptor that stdout originally refered to. It is logically the equivalent of: stdout=1 stderr=2 stderr=$stdout stdout=foo echo $stderr The correct syntax is ">foo 2>&1", which does the logical equivalent of: stdout=1 stderr=2 stdout=foo stderr=$stdout HTH, -Richard -- [email protected] mailing list

