From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18500 invoked by alias); 11 Oct 2010 09:10:04 -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: 28341 Received: (qmail 23138 invoked from network); 11 Oct 2010 09:10:00 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_PASS autolearn=ham version=3.3.1 Received-SPF: none (ns1.primenet.com.au: domain at csr.com does not designate permitted sender hosts) Date: Mon, 11 Oct 2010 09:42:41 +0100 From: Peter Stephenson To: "Zsh Hackers' List" Subject: Fw: zsh POSIX_TRAPS option Message-ID: <20101011094241.17796aaa@pwslap01u.europe.root.pri> Organization: Cambridge Silicon Radio X-Mailer: Claws Mail 3.7.6 (GTK+ 2.18.9; i686-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 11 Oct 2010 08:42:41.0090 (UTC) FILETIME=[43FFD220:01CB6920] X-Scanned-By: MailControl A-06-00-00 (www.mailcontrol.com) on 10.68.0.130 Date: Sat, 9 Oct 2010 14:54:17 +0200 From: Jilles Tjoelker To: Peter Stephenson Subject: zsh POSIX_TRAPS option Hi, Regarding the POSIX_TRAPS option, I can't help but wonder if making a difference between f() { ... } (POSIX functions) and function f { ... } (ksh functions) instead of adding more and more options would make things less complex. In ksh93, ksh functions have their own traps, while POSIX functions share the invoker's traps. ksh93 does not support function f() { ... } (a stupid bashism), but mksh does, treating it as a POSIX function. -- Jilles Tjoelker Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom