bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to inherent non-zero exit status using pipe?


From: Pierre Gaston
Subject: Re: How to inherent non-zero exit status using pipe?
Date: Wed, 11 Aug 2010 14:20:56 +0300

On Wed, Aug 11, 2010 at 2:18 PM, Peng Yu <address@hidden> wrote:
> Hi,
>
>
> The following example returns the exit status of the last command in a
> pipe. I'm wondering if there is a way to inherent non-zero exit status
> using pipe. That is, if there is any command in a pipe that return a
> non-zero status, I'd like the whole pipe return a non-zero status.

set -o pipefail



reply via email to

[Prev in Thread] Current Thread [Next in Thread]