package dpatch
severity 472945 wishlist
retitle 472945 dpatch: ignore "set -o pipefail" when not available in bash2
thanks

On 4/1/08, Junichi Uekawa <[EMAIL PROTECTED]> wrote:
> > >  > I would like to purpose a better solution for this.
>  > >  >
>  > >  > In /usr/bin/dpatch,
>  > >  >
>  > >  >    if [ "${BASH_VERSINFO[0]}" -ge 3 ]; then
>  > >  >       set -o pipefail
>  > >  >    fi
>  > >
>  > >  No, that's unacceptable, that changes behavior.
>  >
>  > It changes the behavior in what way?
>
>
> Hmm? You are making 'pipefail' conditional, it should be obvious.
>

So, it will at least work in bash2 that not support pipefail.
Hmm, to be more obvious, then,

   set -e
   set -o pipefail || true

Or set pipefail before "set -e",

   set -o pipefail
   set -e


Regards,
Anon.



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to