[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bug with && in piped functions in minimal-config bash
From: |
Chet Ramey |
Subject: |
Re: Bug with && in piped functions in minimal-config bash |
Date: |
Sat, 5 Nov 2016 14:56:37 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 |
On 11/4/16 5:41 PM, Martijn Dekker wrote:
> My development with Modernish just exposed the following bug on bash
> 4.4.0(1)-maint, bash-20161028 snapshot, compiled with
> --enable-minimal-config --enable-alias:
>
> $ fn() { false && echo bug || echo ok; }
> $ fn
> ok
> $ fn
> ok
> $ fn | cat
> ok
> $ fn | cat
> bug
Thanks for the report. This is an easy fix; similar to that from 9/23
based on your bug report then.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/