Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Fw: zsh POSIX_TRAPS option



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