Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bug#310872: zsh can't be a ksh replacement (can't trap ERR).
- X-seq: zsh-workers 21292
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: Bug#310872: zsh can't be a ksh replacement (can't trap ERR).
- Date: Mon, 30 May 2005 18:41:43 +0000
- Cc: 310872@xxxxxxxxxxxxxxx
- In-reply-to: <20050530140616.GA7651@xxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <200505261638.SAA09610@xxxxxxxxxxxxxxxxx> <20050526191520.GA30061@xxxxxxxxxxx> <42971781.9050402@xxxxxxx> <20050530140616.GA7651@xxxxxxxxxxx>
On May 30, 10:06am, Clint Adams wrote:
} Subject: Re: Bug#310872: zsh can't be a ksh replacement (can't trap ERR).
}
} If the wise people on zsh-workers think that not understanding ERR is
} acceptable for ksh emulation, I'm inclined to do nothing.
Please note that I was not making any sort of judgement about whether
zsh *ought* to treat ERR differently in ksh mode. I merely explained
why zsh behaves the way it does. (Google indicates that ksh does run
on UNICOS; I wonder what it does with ERR in that case.)
I note in passing that "trap" in zsh doesn't understand all the same
signals that "kill" does. For example, when the OS defines both, "kill"
understands SIGIO as a synonym for SIGPOLL and SIGCLD for SIGCHLD, but
"trap" only knows CHLD and POLL.
Perhaps the "alt_sigs" code should be factored out of jobs.c [*] and
extended to cover SIGERR as well. Whether that's enabled only in ksh
emulation is a second question.
[*] Or perhaps bin_trap() should be moved *to* jobs.c.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author