From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19644 invoked from network); 26 May 2005 19:15:37 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 26 May 2005 19:15:37 -0000 Received: (qmail 43909 invoked from network); 26 May 2005 19:15:30 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 26 May 2005 19:15:30 -0000 Received: (qmail 15135 invoked by alias); 26 May 2005 19:15:28 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 21282 Received: (qmail 15110 invoked from network); 26 May 2005 19:15:27 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 26 May 2005 19:15:27 -0000 Received: (qmail 43686 invoked from network); 26 May 2005 19:15:27 -0000 Received: from acolyte.scowler.net (216.254.112.45) by a.mx.sunsite.dk with SMTP; 26 May 2005 19:15:22 -0000 Received: by acolyte.scowler.net (Postfix, from userid 1000) id E5FFC70054; Thu, 26 May 2005 15:15:20 -0400 (EDT) Date: Thu, 26 May 2005 15:15:20 -0400 From: Clint Adams To: Christophe Martin , 310872@bugs.debian.org Cc: zsh-workers@sunsite.dk Subject: Re: Bug#310872: zsh can't be a ksh replacement (can't trap ERR). Message-ID: <20050526191520.GA30061@scowler.net> Mail-Followup-To: Christophe Martin , 310872@bugs.debian.org, zsh-workers@sunsite.dk References: <200505261638.SAA09610@sdt.univ-brest.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200505261638.SAA09610@sdt.univ-brest.fr> User-Agent: Mutt/1.5.9i X-Spam-Checker-Version: SpamAssassin 3.0.2 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, score=-2.6 required=6.0 tests=BAYES_00 autolearn=ham version=3.0.2 X-Spam-Hits: -2.6 > 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.