From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7689 invoked from network); 11 Dec 2007 16:35:55 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.3 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 11 Dec 2007 16:35:55 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 12886 invoked from network); 11 Dec 2007 16:35:47 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 11 Dec 2007 16:35:47 -0000 Received: (qmail 29849 invoked by alias); 11 Dec 2007 16:35:43 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 24213 Received: (qmail 29836 invoked from network); 11 Dec 2007 16:35:42 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 11 Dec 2007 16:35:42 -0000 Received: from virusfilter.dotsrc.org (bifrost [127.0.0.1]) by spamfilter.dotsrc.org (Postfix) with ESMTP id 74C248058F3B for ; Tue, 11 Dec 2007 17:33:05 +0100 (CET) Received: from vms046pub.verizon.net (vms046pub.verizon.net [206.46.252.46]) by bifrost.dotsrc.org (Postfix) with ESMTP for ; Tue, 11 Dec 2007 17:33:05 +0100 (CET) Received: from torch.brasslantern.com ([71.121.18.67]) by vms046.mailsrvcs.net (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPA id <0JSW00F2O8QS5XPQ@vms046.mailsrvcs.net> for zsh-workers@sunsite.dk; Tue, 11 Dec 2007 10:35:17 -0600 (CST) Received: from torch.brasslantern.com (localhost.localdomain [127.0.0.1]) by torch.brasslantern.com (8.13.1/8.13.1) with ESMTP id lBBGZADe016846 for ; Tue, 11 Dec 2007 08:35:11 -0800 Received: (from schaefer@localhost) by torch.brasslantern.com (8.13.1/8.13.1/Submit) id lBBGZATJ016845 for zsh-workers@sunsite.dk; Tue, 11 Dec 2007 08:35:10 -0800 Date: Tue, 11 Dec 2007 08:35:10 -0800 From: Bart Schaefer Subject: Re: "set -o foo" does not fail / does not abort the shell In-reply-to: <200712111356.lBBDuo5B024173@news01.csr.com> To: zsh-workers@sunsite.dk Message-id: <071211083510.ZM16844@torch.brasslantern.com> MIME-version: 1.0 X-Mailer: OpenZMail Classic (0.9.2 24April2005) Content-type: text/plain; charset=us-ascii References: <20071211125419.GS13079@prunille.vinc17.org> <200712111356.lBBDuo5B024173@news01.csr.com> Comments: In reply to Peter Stephenson "Re: "set -o foo" does not fail / does not abort the shell" (Dec 11, 1:56pm) X-Virus-Scanned: ClamAV using ClamSMTP On Dec 11, 1:56pm, Peter Stephenson wrote: } } Vincent Lefevre wrote: } > I've tried the following with zsh-4.3.4-dev-4: } > } > $ Src/zsh -f -c 'emulate sh; set -o foo; echo "Didn''t abort ($?)"' } > set: no such option: foo } > Didn't abort (0) } > } > This is incorrect. The shell should abort as 'set' is a special } > builtin[*]: } } This is easy. I'm left wondering if this shouldn't be a POSIX-mode thing, i.e. whether zsh in "native mode" should continue as it has.