Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Piping stderr (was Re: Two bug reports)



On Mar 24,  7:02pm, Bart Schaefer wrote:
}
} In fact (hand smacks forehead), just add braces:
} 
}     { /bin/sh -c 'echo out; echo err >&2' >/dev/null 2>>(cat) }

Oops, sorry, that doesn't work unless you also redirect the whole
brace expression somewhere.  I confused myself.

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   



Messages sorted by: Reverse Date, Date, Thread, Author