From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23879 invoked from network); 25 Jul 2005 03:44:37 -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:44:37 -0000 Received: (qmail 60064 invoked from network); 25 Jul 2005 03:44:31 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 25 Jul 2005 03:44:31 -0000 Received: (qmail 18345 invoked by alias); 25 Jul 2005 03:44:04 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9150 Received: (qmail 18331 invoked from network); 25 Jul 2005 03:44:00 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 25 Jul 2005 03:44:00 -0000 Received: (qmail 58858 invoked from network); 25 Jul 2005 03:43:59 -0000 Received: from p5485223b.dip0.t-ipconnect.de (HELO solfire) (84.133.34.59) by a.mx.sunsite.dk with SMTP; 25 Jul 2005 03:43:54 -0000 Received: from localhost ([127.0.0.1]) by solfire with esmtp (Exim 4.42) id 1Dwtty-0000wW-V5; Mon, 25 Jul 2005 05:45:18 +0200 Date: Mon, 25 Jul 2005 05:45:14 +0200 (CEST) Message-Id: <20050725.054514.63127481.Meino.Cramer@gmx.de> To: phil@fifi.org Cc: zsh-users@sunsite.dk From: Meino Christian Cramer In-Reply-To: <87sly3mug9.fsf@ceramic.fifi.org> References: <87r7dnsvjn.fsf@ceramic.fifi.org> <20050725.050633.74748820.Meino.Cramer@gmx.de> <87sly3mug9.fsf@ceramic.fifi.org> X-Mailer: Mew version 4.1 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Rcpt-To: phil@fifi.org, zsh-users@sunsite.dk X-SA-Exim-Mail-From: Meino.Cramer@gmx.de Subject: Re: Command != command ??? Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SA-Exim-Version: 4.1+cvs (built Sat, 28 Aug 2004 13:10:40 +0200) X-SA-Exim-Scanned: Yes (on solfire) 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 From: Philippe Troin Subject: Re: Command != command ??? Date: 24 Jul 2005 20:32:38 -0700 > 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. > I am a little confused here -- seems that what I believed to know previously is wrong... ...I am booting my linux box directly into an X-Server with a kdm login...The shell I start then is...interactively, right? .zshrc setopts my extendedglob...then I start a script from there...which again is not interactively...and will "loose" some features I set in my .zshrc... Is this correct? Is there a list where I can identify those features, which are not valid for scripts, if set in .zshrc? Or do I have to read through the whole zshall manpage? Meino