From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12105 invoked from network); 19 Nov 2003 17:01:25 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 19 Nov 2003 17:01:25 -0000 Received: (qmail 9754 invoked by alias); 19 Nov 2003 17:01:04 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 6787 Received: (qmail 9711 invoked from network); 19 Nov 2003 17:01:03 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 19 Nov 2003 17:01:03 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [62.189.183.235] by sunsite.dk (MessageWall 1.0.8) with SMTP; 19 Nov 2003 17:1:2 -0000 Received: from EXCHANGE02.csr.com (unverified) by MAILSWEEPER01.csr.com (Content Technologies SMTPRS 4.3.10) with ESMTP id for ; Wed, 19 Nov 2003 17:00:57 +0000 Received: from csr.com ([192.168.144.127]) by EXCHANGE02.csr.com with Microsoft SMTPSVC(5.0.2195.5329); Wed, 19 Nov 2003 17:01:59 +0000 To: zsh users Subject: Re: zsh vs ksh In-reply-to: ""William H. Magill""'s message of "Tue, 18 Nov 2003 14:05:26 EST." <2B1BAD39-19FA-11D8-BE95-000393768D2C@mcgillsociety.org> Date: Wed, 19 Nov 2003 17:00:46 +0000 Message-ID: <3263.1069261246@csr.com> From: Peter Stephenson X-OriginalArrivalTime: 19 Nov 2003 17:01:59.0722 (UTC) FILETIME=[D895C8A0:01C3AEBE] "William H. Magill" wrote: > What is the reasonable way to determine if the contents of a .profile > are being read by zsh or bash? > > Especially when using zsh to emulate ksh. [ x$ZSH_VERSION != x ] works even in ksh emulation. If you're not paranoid about old versions of bash, and your sure there isn't a more basic sh lying around, you can use the more natural [[ -n $ZSH_VERSION ]] -- 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 **********************************************************************