Zsh Mailing List Archive
Messages sorted by:
Re: Bug#310872: zsh can't be a ksh replacement (can't trap ERR).
- X-seq: zsh-workers 21295
- From: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx, 310872@xxxxxxxxxxxxxxx
- Subject: Re: Bug#310872: zsh can't be a ksh replacement (can't trap ERR).
- Date: Wed, 01 Jun 2005 10:25:41 +0200
- In-reply-to: <1050530184143.ZM30459@xxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <200505261638.SAA09610@xxxxxxxxxxxxxxxxx> <20050526191520.GA30061@xxxxxxxxxxx> <42971781.9050402@xxxxxxx> <20050530140616.GA7651@xxxxxxxxxxx> <1050530184143.ZM30459@xxxxxxxxxxxxxxxxxxxxxxx>
> (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
| 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.
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.
Messages sorted by: