From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4055 invoked from network); 18 May 2005 17:50:02 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 18 May 2005 17:50:02 -0000 Received: (qmail 79889 invoked from network); 18 May 2005 17:49:56 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 18 May 2005 17:49:56 -0000 Received: (qmail 12119 invoked by alias); 18 May 2005 17:49:40 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 8866 Received: (qmail 12060 invoked from network); 18 May 2005 17:49:39 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 18 May 2005 17:49:39 -0000 Received: (qmail 76967 invoked from network); 18 May 2005 17:49:38 -0000 Received: from mailhost1.csr.com (HELO MAILSWEEPER01.csr.com) (81.105.217.43) by a.mx.sunsite.dk with SMTP; 18 May 2005 17:49:27 -0000 Received: from exchange03.csr.com (unverified [10.100.137.60]) by MAILSWEEPER01.csr.com (Content Technologies SMTPRS 4.3.12) with ESMTP id for ; Wed, 18 May 2005 18:47:39 +0100 Received: from csr.com ([10.102.144.127]) by exchange03.csr.com with Microsoft SMTPSVC(5.0.2195.6713); Wed, 18 May 2005 18:50:51 +0100 To: zsh-users@sunsite.dk Subject: Re: variable assignment in a script using globsubst In-Reply-To: Message from Vincent Stemen of "Wed, 18 May 2005 12:22:03 CDT." <20050518172202.GA98847@quark.hightek.org> References: <20050518044354.GA96824@quark.hightek.org> <17522.1116409750@csr.com> <20050518172202.GA98847@quark.hightek.org> Date: Wed, 18 May 2005 18:49:25 +0100 Message-ID: <18909.1116438565@csr.com> From: Peter Stephenson X-OriginalArrivalTime: 18 May 2005 17:50:51.0798 (UTC) FILETIME=[21C89360:01C55BD2] 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=AWL,BAYES_00 autolearn=ham version=3.0.2 X-Spam-Hits: -2.6 Vincent Stemen wrote: > No, I "unsetopt globassign" to make sure, even though it did not show > in the list of currently set options, but it still works from the > command line. I was trying to do it this way because the script I am > working on is running in sh emulation mode and doing it as > "files=/bin/c*" assigns it as a single string. I ended up going ahead > and changing the one function to zsh mode and doing it as a list to > get around the problem, but I wonder if I have stumbled onto a bug > here. Do you have globsubst set? In that case, files will be set to /bin/c* but "echo $files" would expand the glob at that point. -- Peter Stephenson Software Engineer CSR PLC, Churchill House, Cambridge Business Park, Cowley Road Cambridge, CB4 0WZ, 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. **********************************************************************