From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29823 invoked by alias); 12 Oct 2012 11:12:30 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 30727 Received: (qmail 13214 invoked from network); 12 Oct 2012 11:12:28 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, HTML_MESSAGE,RCVD_IN_DNSWL_NONE,T_TO_NO_BRKTS_FREEMAIL autolearn=ham version=3.3.2 Received-SPF: none (ns1.primenet.com.au: domain at email.com does not designate permitted sender hosts) Content-Type: multipart/alternative; boundary="========GMXBoundary314891350039942243501" Date: Fri, 12 Oct 2012 07:05:41 -0400 From: "Sergey Fadeev" Message-ID: <20121012110542.314890@gmx.com> MIME-Version: 1.0 Subject: set -e (no && or ||) To: zsh-workers@zsh.org X-Authenticated: #142998499 X-Flags: 0001 X-Mailer: GMX.com Web Mailer x-registered: 0 X-GMX-UID: 0ZwFcGUa3zOl2IKY7nwhuNl+IGRvb4Cn --========GMXBoundary314891350039942243501 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Why doesn't it exit the shell? $ set -e $ echo $(false) Shouldn't the error code of $(false) command substitution be checked by set -e before passing stdout to the echo builtin? Isn't it the most logical behavior that most people would expect of set -e? Zsh version: zsh 4.3.17 (x86_64-redhat-linux-gnu) (if it matters) Thanks --========GMXBoundary314891350039942243501--