From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27685 invoked from network); 25 Oct 2004 13:07:38 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 25 Oct 2004 13:07:38 -0000 Received: (qmail 93406 invoked from network); 25 Oct 2004 13:07:32 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 25 Oct 2004 13:07:32 -0000 Received: (qmail 13101 invoked by alias); 25 Oct 2004 13:06:33 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 20516 Received: (qmail 13083 invoked from network); 25 Oct 2004 13:06:32 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 25 Oct 2004 13:06:32 -0000 Received: (qmail 91816 invoked from network); 25 Oct 2004 13:06:32 -0000 Received: from moutng.kundenserver.de (212.227.126.190) by a.mx.sunsite.dk with SMTP; 25 Oct 2004 13:06:30 -0000 Received: from [212.227.126.206] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1CM4YP-0000Og-00 for zsh-workers@sunsite.dk; Mon, 25 Oct 2004 15:06:29 +0200 Received: from [217.233.113.227] (helo=buddha.localdomain.de) by mrelayng.kundenserver.de with asmtp (Exim 3.35 #1) id 1CM4YP-0004RG-00 for zsh-workers@sunsite.dk; Mon, 25 Oct 2004 15:06:29 +0200 Date: Mon, 25 Oct 2004 15:06:30 +0200 From: "Matthias B." To: zsh-workers@sunsite.dk Subject: zsh/bash incompatibilities Message-Id: <20041025150630.230c5115@buddha.localdomain.de> X-Mailer: Sylpheed version 0.9.8claws (GTK+ 1.2.10; i586-pc-linux-gnu) Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Multipart=_Mon__25_Oct_2004_15_06_30_+0200_M8Eub3tvYKmIbdsJ" X-Provags-ID: kundenserver.de abuse@kundenserver.de auth:95d11223a40b7ac6df081cef1fe1fef2 X-Spam-Checker-Version: SpamAssassin 2.63 on a.mx.sunsite.dk X-Spam-Level: * X-Spam-Status: No, hits=1.6 required=6.0 tests=RCVD_IN_NJABL,RCVD_IN_SORBS autolearn=no version=2.63 X-Spam-Hits: 1.6 This is a multi-part message in MIME format. --Multipart=_Mon__25_Oct_2004_15_06_30_+0200_M8Eub3tvYKmIbdsJ Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit I've encountered several things where zsh's behaviour (in sh-mode) differs from that of bash (in sh-mode). The attached script demonstrates the differences. When /bin/sh is bash, the output is ab \y $ When /bin/sh is zsh, the output is a b y \44 I'm undecided about which \ treatment inside of $'..' I prefer, so I guess looking to what POSIX says is best. Regarding zsh's refusal to interpret octal escapes that don't start with 0, I find that very annoying and it's certainly not what most people expect. There are scripts out there that will fail with sh=zsh because of this. I think this should be changed (regardless of what POSIX says). MSB -- Indecision is the key to flexibility. --Multipart=_Mon__25_Oct_2004_15_06_30_+0200_M8Eub3tvYKmIbdsJ Content-Type: text/plain; name="bash_zsh_differences" Content-Disposition: attachment; filename="bash_zsh_differences" Content-Transfer-Encoding: base64 IyEvYmluL3NoCmVjaG8gJCdhXApiJwoKZWNobyAkJ1x5JwoKZWNobyAtZSAnXDQ0Jwo= --Multipart=_Mon__25_Oct_2004_15_06_30_+0200_M8Eub3tvYKmIbdsJ--