zsh-workers
 help / color / mirror / code / Atom feed
From: Oliver Kiddle <okiddle@yahoo.co.uk>
To: zsh-workers@sunsite.dk, 310872@bugs.debian.org
Subject: Re: Bug#310872: zsh can't be a ksh replacement (can't trap ERR).
Date: Wed, 01 Jun 2005 10:25:41 +0200	[thread overview]
Message-ID: <9879.1117614341@trentino.groupinfra.com> (raw)
In-Reply-To: <1050530184143.ZM30459@candle.brasslantern.com>

Bart wrote:
> (Google indicates that ksh does run
> on UNICOS; I wonder what it does with ERR in that case.)

I tried asking on ast-users and received the following answer from Glenn
Fowler:

| ksh does not currently handle this
| but I talked with David Korn and the next release will do the following
| 
| the "SIG" prefix is optional for trap and kill, e.g., "HUP" == "SIGHUP"
| the change will be to do only a signal lookup when a "SIG" prefix is specified,
| and a shell trap name lookup followed by a signal lookup otherwise
| 
| so, on systems like unicos that have SIGERR, the trap name "SIGERR" refers
| to the signal, and "ERR" refers to the shell trap on error
| "SIGERR" on systems with no SIGERR signal will fail
| 
| this approach will handle all future non-posix signal/shell-trap clashes,
| e.g., if some system invents SIGEXIT

That would seem a far better solution to me than having a separate ZERR,
especially as it deals with future conflicts. Would it be hard for us to
do that same in zsh? We can always keep ZERR for backward compatibility.

Oliver


This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.


  reply	other threads:[~2005-06-01  8:26 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200505261638.SAA09610@sdt.univ-brest.fr>
2005-05-26 19:15 ` Clint Adams
2005-05-27  1:20   ` Bart Schaefer
2005-05-27 12:50     ` Christophe Martin
2005-05-27 14:19       ` Bart Schaefer
2005-05-27 16:34         ` Christophe Martin
2005-05-27 12:50   ` Christophe Martin
2005-05-30 14:06     ` Clint Adams
2005-05-30 18:41       ` Bart Schaefer
2005-06-01  8:25         ` Oliver Kiddle [this message]
2005-06-01 10:31         ` Peter Stephenson
2005-06-01 13:50           ` Bart Schaefer
2005-06-01 13:57           ` Bart Schaefer
2005-06-01 14:04             ` Peter Stephenson
2005-06-01 14:09             ` Bart Schaefer

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=9879.1117614341@trentino.groupinfra.com \
    --to=okiddle@yahoo.co.uk \
    --cc=310872@bugs.debian.org \
    --cc=zsh-workers@sunsite.dk \
    /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).