From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10504 invoked by alias); 14 Sep 2016 08:00:47 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 21902 Received: (qmail 22575 invoked from network); 14 Sep 2016 08:00:47 -0000 X-Qmail-Scanner-Diagnostics: from out4-smtp.messagingengine.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(66.111.4.28):SA:0(0.0/5.0):. Processed in 0.140182 secs); 14 Sep 2016 08:00:47 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=FREEMAIL_FROM,SPF_PASS, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: ynnor@mm.st X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at spf.messagingengine.com designates 66.111.4.28 as permitted sender) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=mm.st; h= content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=X6v /xmW+zkhhJiQKN3KhpK9jwDA=; b=lHcaRFxhxi0dU/qLUYjILncl8o+sNFlM63U KEfWKtUq4FdHlu1rMW326G/T++LS893PYxNJmQs7VMmbGgRi/N6oOQH8VuENMIJv Cw1NvXl7AFZolc4/cGZ2MVANxNcbJO8ku3C0TaT8V3ju9Jt+I6hyPlE5uV9pI0UV WRJTLGAg= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=X6v/xmW+zkhhJiQKN3KhpK9jwDA=; b=RwXh6 CVNYrmOI3j6PTk9Pdcch4NOWr4legg95zDz+oJpi0YqwKLQxpozrVIHCjAwxEyda rm/PydUvbqJS0FEeug2PmYp1e2Qm3Gapc6kJjXF+zbr1jcLFADiZYuK0UcjdhfhN hLoQj28cGc6vOYlOo+G/nQ+y5CM7Cauba3cZ/Q= Message-Id: <1473840044.77968.725190513.460F8572@webmail.messagingengine.com> X-Sasl-Enc: FUUMsoQAXoF4PloiND80ElRwRskOm+JNiaP4TQ8xLASi 1473840044 From: Ronald Fischer To: "Zsh Mailing-List" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain X-Mailer: MessagingEngine.com Webmail Interface - html Subject: Possible bug: Zsh function does not terminate when ${name:?word} fails Date: Wed, 14 Sep 2016 10:00:44 +0200 (See also for a complete discussion: http://stackoverflow.com/questions/39463547/zsh-function-does-not-terminate-when-nameword-fails?noredirect=1#comment66276136_39463547) I have in my .zshrc the following function definition (simplified example): function foo { local p=${1:?parameter missing} echo continue .... } Running the function by just typing foo produces, as expected, the message parameter missing, but it also outputs continue. I had expected that the function terminates when the :? check fails, but it continues to run. I tested this with zsh 5.1.1, but I was informed that this behaviour also can be reproduced with zsh 5.2 Ronald