From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5922 invoked from network); 2 Sep 2004 13:57:37 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 2 Sep 2004 13:57:37 -0000 Received: (qmail 20578 invoked from network); 2 Sep 2004 13:57:32 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 2 Sep 2004 13:57:32 -0000 Received: (qmail 19275 invoked by alias); 2 Sep 2004 13:57:21 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 20305 Received: (qmail 19264 invoked from network); 2 Sep 2004 13:57:20 -0000 Received: from unknown (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 2 Sep 2004 13:57:20 -0000 Received: (qmail 20111 invoked from network); 2 Sep 2004 13:56:21 -0000 Received: from lhuumrelay3.lnd.ops.eu.uu.net (62.189.58.19) by a.mx.sunsite.dk with SMTP; 2 Sep 2004 13:56:20 -0000 Received: from MAILSWEEPER01.csr.com (mailhost1.csr.com [62.189.183.235]) by lhuumrelay3.lnd.ops.eu.uu.net (8.11.0/8.11.0) with ESMTP id i82DuJv05708 for ; Thu, 2 Sep 2004 13:56:19 GMT Received: from EXCHANGE02.csr.com (unverified [192.168.137.45]) by MAILSWEEPER01.csr.com (Content Technologies SMTPRS 4.3.12) with ESMTP id for ; Thu, 2 Sep 2004 14:55:27 +0100 Received: from news01.csr.com ([192.168.143.38]) by EXCHANGE02.csr.com with Microsoft SMTPSVC(5.0.2195.6713); Thu, 2 Sep 2004 14:57:00 +0100 Received: from news01.csr.com (localhost.localdomain [127.0.0.1]) by news01.csr.com (8.12.11/8.12.11) with ESMTP id i82DuGtL013048 for ; Thu, 2 Sep 2004 14:56:16 +0100 Received: from csr.com (pws@localhost) by news01.csr.com (8.12.11/8.12.11/Submit) with ESMTP id i82DuFxM013045 for ; Thu, 2 Sep 2004 14:56:15 +0100 Message-Id: <200409021356.i82DuFxM013045@news01.csr.com> X-Authentication-Warning: news01.csr.com: pws owned process doing -bs To: zsh-workers@sunsite.dk Subject: Re: zsh-ksh-Incompatibility In-reply-to: ""Dieter Lambrecht""'s message of "Thu, 02 Sep 2004 15:46:01 +0200." Date: Thu, 02 Sep 2004 14:56:14 +0100 From: Peter Stephenson X-OriginalArrivalTime: 02 Sep 2004 13:57:00.0737 (UTC) FILETIME=[B80B1310:01C490F4] X-Spam-Checker-Version: SpamAssassin 2.63 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, hits=0.0 required=6.0 tests=none autolearn=no version=2.63 X-Spam-Hits: 0.0 "Dieter Lambrecht" wrote: > Hi, > > there is an incompatility between Korn-Shell and zsh with emulate ksh: > > > A real korn shell script ( e.g. Version M-11/16/88f or Version M-12/28/= > 93e on AIX, Version M-11/16/88i on Solaris) > > #! /bin/ksh > > u=3Dbzq090 > echo ~$u > > gives output > > /home/bzq090 > > > whereas the same script for zsh in ksh-emulation > #! /bin/zsh > emulate ksh > > u=3Dbzq090 > echo ~$u > > produces > > ~bzq090. That's strange, because the shell was altered specifically to do this in ksh (and more generally, Bourne shell) emulation. Possibly it's needed in sh emulation only. `unsetopt sh_file_expansion' will make it work. -- Peter Stephenson Software Engineer CSR Ltd., Science Park, Milton Road, Cambridge, CB4 0WH, UK Tel: +44 (0)1223 692070 ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com **********************************************************************