Subject: None
To: Mike Long <mike.long@analog.com>
From: Wayne Berke <berke@panix.com>
List: port-i386
Date: 03/27/1997 14:01:49
In message <9703271558.AA28035@cthulhu.spd.analog.com>, Mike Long writes:
> The best way to debug such problems is to redirect stdout and stderr
> from startx to a file:
> 
> % startx >& startx.log      # csh
> % startx 2>&1 > startx.log  # sh

Actually, the sh example should be ordered:
	% startx > startx.log 2>&1

Redirection is processed from left to right so processing 2>&1 first
results in stderr being attached to the terminal.

	$ ls 2>&1 /no_such_file > /tmp/foo
	ls: /no_such_file: No such file or directory
	$ ls /no_such_file > /tmp/foo 2>&1
	$

Wayne