On May 26, 3:15pm, Clint Adams wrote: } Subject: Re: Bug#310872: zsh can't be a ksh replacement (can't trap ERR). } } > This simple command fails using zsh as ksh (I did update-alternatives) : } > } > trap 'echo alert-an-error-occured' ERR
Zsh does not provide an ERR trap because some platforms on which zsh can be compiled actually have SIGERR defined, which is a real OS-level signal and not interchangeable with the ksh et al. use of ERR as a magic trap. The zsh equivalent is trap 'echo alert-an-error-occured' ZERR A possible workaround would be (( $signals[(I)ERR] )) || alias -g ERR=ZERR } P.S., someone left conflict cruft in ChangeLog. "cvs annotate" is great for finding someones. I deleted the cruft. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]