From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11256 invoked from network); 18 May 2005 04:46:36 -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 04:46:36 -0000 Received: (qmail 61800 invoked from network); 18 May 2005 04:46:23 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 18 May 2005 04:46:23 -0000 Received: (qmail 14492 invoked by alias); 18 May 2005 04:46:15 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 8861 Received: (qmail 14479 invoked from network); 18 May 2005 04:46:13 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 18 May 2005 04:46:13 -0000 Received: (qmail 60695 invoked from network); 18 May 2005 04:46:13 -0000 Received: from lakermmtao12.cox.net (68.230.240.27) by a.mx.sunsite.dk with SMTP; 18 May 2005 04:46:07 -0000 Received: from quark.hightek.org ([68.12.75.33]) by lakermmtao12.cox.net (InterMail vM.6.01.04.00 201-2131-118-20041027) with ESMTP id <20050518044606.FDHA10612.lakermmtao12.cox.net@quark.hightek.org> for ; Wed, 18 May 2005 00:46:06 -0400 Received: by quark.hightek.org (Postfix, from userid 501) id 1C06E4592B; Tue, 17 May 2005 23:43:55 -0500 (CDT) Date: Tue, 17 May 2005 23:43:55 -0500 From: Vincent Stemen To: zsh-users@sunsite.dk Subject: variable assignment in a script using globsubst Message-ID: <20050518044354.GA96824@quark.hightek.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i 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 Any idea why this works from the command line, $ setopt globsubst $ files=/bin/c*; echo $files /bin/cat /bin/chflags /bin/chio /bin/chmod /bin/cp /bin/csh but in a script, it does not? # ---- Output of the script: /etc/c* I got the same result on both Linux and BSD. The script works if I set globassign in the script, but it assigns it as an array rather than a string. However, the manual says, this about globassign. "This option is provided for backwards compatibility only" Am I overlooking some other option that could be affecting it? -- Vincent Stemen Avoid the VeriSign/Network Solutions domain registration trap! Read how Network Solutions (NSI) was involved in stealing our domain name. http://inetaddresses.net/about_NSI.html