zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: Zsh workers <zsh-workers@sunsite.dk>
Subject: Re: $pipestatus broken
Date: Mon, 3 Nov 2003 01:55:38 +0000	[thread overview]
Message-ID: <1031103015538.ZM607@candle.brasslantern.com> (raw)
In-Reply-To: <1233.1067772228@athlon>

On Nov 2, 12:23pm, Oliver Kiddle wrote:
}
} The pipestatus array seems to be broken:
} 
} % ls|cat -|cat - >/dev/null
} % echo $pipestatus
} 0

It works with "zsh -f" in the latest dev version:

zagzig% true | false |true 
zagzig% echo $pipestatus
0 1 0

It fails if there's a precmd function defined:

zagzig% precmd() { echo PRECMD: $pipestatus }
PRECMD: 0
zagzig% echo $pipestatus
0
PRECMD: 0
zagzig% false | echo $pipestatus
0
PRECMD: 1 0
zagzig% echo $pipestatus
0
PRECMD: 0

I think there's code to save and restore `lastval' around precmd(), but
it doesn't save and restore the entire `pipestats' array.


  reply	other threads:[~2003-11-03  2:10 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-02 11:23 Oliver Kiddle
2003-11-03  1:55 ` Bart Schaefer [this message]
2003-11-03 11:24   ` Peter Stephenson
2003-11-03 12:56   ` Oliver Kiddle
2003-11-03 13:04     ` Peter Stephenson
2003-11-03 13:35       ` Oliver Kiddle

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1031103015538.ZM607@candle.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).