On Mon, 11 Jan 2010 15:02:35 +0300
San_Sanych <ssan...@gmail.com> wrote:

> set -o pipefail on; echo test|cat noexist|wc -l; echo $?
> cat: noexist: No such file or directory
> 0
> bash: echo: ошибка записи: Broken pipe
> 1

http://sourceforge.net/projects/pipestatus/

-- 
Alexander Galanin

Attachment: pgpiuTeZxnDtH.pgp
Description: PGP signature

Ответить