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 21282
- From: Clint Adams <schizo@xxxxxxxxxx>
- To: Christophe Martin <schplurtz@xxxxxxx>, 310872@xxxxxxxxxxxxxxx
- Subject: Re: Bug#310872: zsh can't be a ksh replacement (can't trap ERR).
- Date: Thu, 26 May 2005 15:15:20 -0400
- Cc: zsh-workers@xxxxxxxxxx
- In-reply-to: <200505261638.SAA09610@xxxxxxxxxxxxxxxxx>
- Mail-followup-to: Christophe Martin <schplurtz@xxxxxxx>, 310872@xxxxxxxxxxxxxxx, zsh-workers@xxxxxxxxxx
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <200505261638.SAA09610@xxxxxxxxxxxxxxxxx>
> This is very simple. zsh is not to be considered a ksh.
> This simple command fails using zsh as ksh (I did update-alternatives) :
>
> trap 'echo alert-an-error-occured' ERR
>
> This simple command succeeds with `normal/standard' ksh, tested with :
> Solaris ksh,
> OSF1 ksh,
> AIX ksh,
> pdksh (debian sarge),
> www.kornshell.com ksh.
>
> I hope you will remove this alternative before too many scripts break...
Recently, the Debian packages for ksh93, pdksh, and zsh cooperated to
provide alternatives for /bin/ksh. This was done without defining any
exact requirements, so at the present time, it is de facto "the
intersection of ksh93, pdksh, and zsh".
Unless this bug is deemed release-critical (I doubt it will be), the
upcoming Debian release will allow zsh to easily be /bin/ksh.
P.S., someone left conflict cruft in ChangeLog.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author