You can force a stream to a file using >|.
command 2>| junk

You can also do
command 1 >junk 2>&1
to pipe both std out and std err to junk.

On Thu, 14 Nov 2002, Bob Tanner wrote:

> Being an old tcsh user, I use to be able to do this:
>
> command |& tee output
>
> stdout and stderr get piped to tee
>
> I tried this under bash.
>
> command | tee output 2>&1
>
> No go. How do you pipe stderr in bash?
>
>
>

-- 
J. David Lee  <johnl at cs.wisc.edu>