Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Fw: zsh POSIX_TRAPS option
- X-seq: zsh-workers 28341
- From: Peter Stephenson <pws@xxxxxxx>
- To: "Zsh Hackers' List" <zsh-workers@xxxxxxx>
- Subject: Fw: zsh POSIX_TRAPS option
- Date: Mon, 11 Oct 2010 09:42:41 +0100
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- Organization: Cambridge Silicon Radio
Date: Sat, 9 Oct 2010 14:54:17 +0200
From: Jilles Tjoelker <jilles@xxxxxxxx>
To: Peter Stephenson <pws@xxxxxxx>
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author