From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16735 invoked from network); 14 Aug 2001 01:46:29 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 14 Aug 2001 01:46:29 -0000 Received: (qmail 10329 invoked by alias); 14 Aug 2001 01:46:23 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 15616 Received: (qmail 10313 invoked from network); 14 Aug 2001 01:46:22 -0000 From: Bart Schaefer Message-Id: <010813184613.ZM6167@candle.brasslantern.com> Date: Mon, 13 Aug 2001 18:46:13 -0700 X-Mailer: Z-Mail Lite (5.0.0 30July97) To: zsh-workers@sunsite.dk Subject: Bug with exit status of zsh -c MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii This recently bit me in a procmail recipe. zsh -fc '! print several words here | fgrep -i -s -e words' returns an exit status of zero. The leading ! should cause it to return a nonzero exit status. By contrast, bash -fc '! print several words here | fgrep -i -s -e words' correctly exits with status 1. This bug affects zsh 3.0.x, 3.1.x, 4.0.x.