From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23614 invoked from network); 25 Jul 2005 22:38:07 -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 22:38:07 -0000 Received: (qmail 20072 invoked from network); 25 Jul 2005 22:38:01 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 25 Jul 2005 22:38:01 -0000 Received: (qmail 13034 invoked by alias); 25 Jul 2005 22:37:53 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9177 Received: (qmail 13024 invoked from network); 25 Jul 2005 22:37:52 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 25 Jul 2005 22:37:52 -0000 Received: (qmail 18956 invoked from network); 25 Jul 2005 22:37:52 -0000 Received: from tantale.fifi.org (64.81.251.130) by a.mx.sunsite.dk with SMTP; 25 Jul 2005 22:37:47 -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 PAA24251; Mon, 25 Jul 2005 15:37:42 -0700 Received: from phil by ceramic.fifi.org with local (Exim 4.34) id 1DxBZu-0002sp-GO; Mon, 25 Jul 2005 15:37:42 -0700 To: Meino Christian Cramer Cc: zsh-users@sunsite.dk Subject: Re: Command != command ??? References: <877jfeoi9z.fsf@ceramic.fifi.org> <20050725.205305.71082445.Meino.Cramer@gmx.de> <8764uyitfr.fsf@ceramic.fifi.org> <20050725.213536.78705211.Meino.Cramer@gmx.de> Mail-Copies-To: nobody From: Philippe Troin Date: 25 Jul 2005 15:37:42 -0700 In-Reply-To: <20050725.213536.78705211.Meino.Cramer@gmx.de> Message-ID: <87oe8qh5qh.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: > From: Philippe Troin > Subject: Re: Command != command ??? > Date: 25 Jul 2005 12:20:24 -0700 > > > Meino Christian Cramer writes: > > > > > From: Philippe Troin > > > Subject: Re: Command != command ??? > > > Date: 25 Jul 2005 11:24:56 -0700 > > > > > > Script started on Mon Jul 25 20:43:47 2005 > > > > > > cat ./globtest > > > > > > > > > #!/bin/zsh > > > setopt extendedglob > > > print -l **/*.jpg > > > > > > > > > > > > > > > /bin/zsh -x ./globtest > > > > 8< snip >8 > > > > Nothing suspicious here... > > > > Do you have any .jpg files under the cwd? i.e., what does > > > > find . "*.jpg" > > > > say? > > > > Phil. > > > > Under . there are directories containing jpgs, yes. > > Even > > print -l **/*.jpg > > from the command line prints all of them. > > The command > > find . "*.jpg" > > prints everything under . but > > find . -name '*.jpg' > > gives the same output as > > print -l **/*.jpg Mmh... What about this script: #!/bin/zsh print "### pwd" pwd command pwd print "### find" find . -name "*.jpg" print "### glob" print -l **/*.jpg What's the output? Phil.