zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <pws@csr.com>
To: "Zsh Hackers' List" <zsh-workers@zsh.org>
Subject: Fw: zsh POSIX_TRAPS option
Date: Mon, 11 Oct 2010 09:42:41 +0100	[thread overview]
Message-ID: <20101011094241.17796aaa@pwslap01u.europe.root.pri> (raw)

Date: Sat, 9 Oct 2010 14:54:17 +0200
From: Jilles Tjoelker <jilles@stack.nl>
To: Peter Stephenson <pws@csr.com>
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


             reply	other threads:[~2010-10-11  9:10 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-11  8:42 Peter Stephenson [this message]
2010-10-11 15:16 ` Bart Schaefer
2010-10-15 13:47   ` Jilles Tjoelker

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20101011094241.17796aaa@pwslap01u.europe.root.pri \
    --to=pws@csr.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).