Hi,
  I forgot to say thanks to all of you who responded. I think the manual page 
needs improvement. This is just confusing.
Martin

Eric Blake wrote:
> On 12/27/2016 10:21 AM, Martin MOKREJŠ wrote:
>> Hi,
>>   I wanted to enable error code reporting for piped processes. This
>> should be doable by "set -o pipeline on". The problem is it kills my $*
>> array and defines $1="on".
> 
> That's because you used the wrong syntax.
> 
> 'set -o pipefail' turns it on,
> 'set +o pipefail' turns it off
> 
> 'set -o pipefail on' is the same as 'set -o pipefail; set on', which
> turns it on but also changes $*.

Reply via email to