From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28502 invoked from network); 25 Jul 2005 03:33:04 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 25 Jul 2005 03:33:04 -0000 Received: (qmail 54260 invoked from network); 25 Jul 2005 03:32:58 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 25 Jul 2005 03:32:58 -0000 Received: (qmail 17228 invoked by alias); 25 Jul 2005 03:32:50 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9149 Received: (qmail 17218 invoked from network); 25 Jul 2005 03:32:49 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 25 Jul 2005 03:32:49 -0000 Received: (qmail 53099 invoked from network); 25 Jul 2005 03:32:48 -0000 Received: from tantale.fifi.org (64.81.251.130) by a.mx.sunsite.dk with SMTP; 25 Jul 2005 03:32:44 -0000 Received: from ceramic.fifi.org (Debian-exim@ceramic.fifi.org [64.81.251.131]) by tantale.fifi.org (8.9.3p2/8.9.3/Debian 8.9.3-21) with ESMTP id UAA14897; Sun, 24 Jul 2005 20:32:39 -0700 Received: from phil by ceramic.fifi.org with local (Exim 4.34) id 1Dwthm-0002HD-U1; Sun, 24 Jul 2005 20:32:38 -0700 To: Meino Christian Cramer Cc: zsh-users@sunsite.dk Subject: Re: Command != command ??? References: <20050724.074251.74755659.Meino.Cramer@gmx.de> <87r7dnsvjn.fsf@ceramic.fifi.org> <20050725.050633.74748820.Meino.Cramer@gmx.de> Mail-Copies-To: nobody From: Philippe Troin Date: 24 Jul 2005 20:32:38 -0700 In-Reply-To: <20050725.050633.74748820.Meino.Cramer@gmx.de> Message-ID: <87sly3mug9.fsf@ceramic.fifi.org> User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,PLING_QUERY autolearn=no version=3.0.4 Meino Christian Cramer writes: > > You setopt extendglob in your zshrc, which is not sourced for your script. > > > > Either move the setopt to zshenv, or add setopt extendedglob to your > > script. > > > > Phil. > > Thank you for you reply. > > I have set extendedglob in my .zshrc...is that not sufficient ? .zshrc is only sourced for interactive shell. A script is considered non-interactive. .zshenv is *always* loaded (except if your admin unsetopt's RCS in /etc/zshenv, but that would be idiotic). Yet, that's not the answer to your problems. No, Bart's right in <1050724232221.ZM26877@candle.brasslantern.com>. Extended_glob is not necessary for **. Yet, the manual states (FILENAME GENERATION > Recursive Globbing): As a shorthand, `**/' is equivalent to `(*/)#'; note that this therefore matches files in the current directory as well as subdirectories. And earlier on (FILENAME GENERATION > Glob Operators): x# (Requires EXTENDED_GLOB to be set.) Matches zero or more occurrences of the pattern x. Should we fix the manual? Phil.