zsh-workers
 help / color / mirror / code / Atom feed
* Strange function/pipestatus behavior, maybe a scope bug?
@ 2013-10-22 18:03 Ian F
  2013-10-23  8:21 ` Peter Stephenson
  0 siblings, 1 reply; 15+ messages in thread
From: Ian F @ 2013-10-22 18:03 UTC (permalink / raw)
  To: zsh-workers

[-- Attachment #1: Type: text/plain, Size: 525 bytes --]

Hi,

First time mailer, just subscribed.  Thanks for taking the time to read
this.

Test cases:

trueFunc() { true; }
falseFunc() { false; }

% false | true | false | true; echo $pipestatus
1 0 1 0
% false | true | false | true | trueFunc; echo $pipestatus
1 0 1 0 0
% false | true | false | true | falseFunc; echo $pipestatus
1 0 1 0 1

Potential bug case:

awkFunc() { awk; }

% false | true | false | true | awkFunc; echo $pipestatus
0

Thanks.  Also, this does not happen in bash.

%Ian


-- 
Ian F

Big hitter, the Lama

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2013-10-25  0:39 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-22 18:03 Strange function/pipestatus behavior, maybe a scope bug? Ian F
2013-10-23  8:21 ` Peter Stephenson
2013-10-23 19:49   ` Ian F
2013-10-23 21:14     ` Peter Stephenson
2013-10-24  5:15       ` Bart Schaefer
2013-10-24  8:57         ` Peter Stephenson
2013-10-24 15:48           ` Peter Stephenson
2013-10-24 16:03             ` Peter Stephenson
2013-10-24 16:44               ` Bart Schaefer
2013-10-24 16:39             ` Bart Schaefer
2013-10-24 16:26           ` Bart Schaefer
2013-10-24 16:46             ` Peter Stephenson
2013-10-25  0:38               ` Bart Schaefer
2013-10-24 15:17         ` Jun T.
2013-10-24 16:25           ` Peter Stephenson

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).