From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27949 invoked by alias); 26 Dec 2014 16:51:11 -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: 34055 Received: (qmail 25190 invoked from network); 26 Dec 2014 16:51:09 -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=-0.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, HK_RANDOM_FROM,RCVD_IN_DNSWL_NONE autolearn=no version=3.3.2 Date: Fri, 26 Dec 2014 17:53:44 +0100 From: mvxxc@gmx.de To: zsh-workers@zsh.org Subject: Bug report Message-ID: <20141226165344.GC1003@basilisk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) X-Provags-ID: V03:K0:RtkW6o23RI/i7S2LisnBLrHQe7FoNFEjixe1OyRiCKQ+k4tXowx 9/fTjWYP0d70QjEBDNKU6ex50z3/H+RJQ/fpeJEqtgxkNPnd1IewwKHj7PIROcDVRcJoY4u EFecUCDL6kweklriJE49+mRFMoMRcXhnR9KczGtxcL4yA6LL58dyKbrO6Anz56HXlE3+jeP i7kA6HAfu3ektW4T5z5RA== X-UI-Out-Filterresults: notjunk:1; If the following script is run in an empty directory, zsh executes the defined function only once. #!/usr/bin/zsh set -e setopt NULL_GLOB func () {for i in _*; do echo $i; done; echo _;} func if false; then : else func fi After adding one line, the function is executed twice. [...] else : func fi "set -e" and "NULL_GLOB" seem to affect both function calls in a different way. This could be a bug, as the answer to my question on Stack Overflow suggests. https://stackoverflow.com/questions/27648773. MVXXC