From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14534 invoked from network); 26 Jul 2005 02:22:11 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 26 Jul 2005 02:22:11 -0000 Received: (qmail 41961 invoked from network); 26 Jul 2005 02:22:04 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 26 Jul 2005 02:22:04 -0000 Received: (qmail 8019 invoked by alias); 26 Jul 2005 02:21:56 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9180 Received: (qmail 8009 invoked from network); 26 Jul 2005 02:21:56 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 26 Jul 2005 02:21:56 -0000 Received: (qmail 40056 invoked from network); 26 Jul 2005 02:21:53 -0000 Received: from tantale.fifi.org (64.81.251.130) by a.mx.sunsite.dk with SMTP; 26 Jul 2005 02:21: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 TAA29175; Mon, 25 Jul 2005 19:21:43 -0700 Received: from phil by ceramic.fifi.org with local (Exim 4.34) id 1DxF4h-0002v7-Ke; Mon, 25 Jul 2005 19:21:43 -0700 To: Meino Christian Cramer Cc: zsh-users@sunsite.dk Subject: Re: Command != command ??? References: <8764uyitfr.fsf@ceramic.fifi.org> <20050725.213536.78705211.Meino.Cramer@gmx.de> <87oe8qh5qh.fsf@ceramic.fifi.org> <20050726.023319.41198250.Meino.Cramer@gmx.de> Mail-Copies-To: nobody From: Philippe Troin Date: 25 Jul 2005 19:21:43 -0700 In-Reply-To: <20050726.023319.41198250.Meino.Cramer@gmx.de> Message-ID: <87ek9mgvd4.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=AWL,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 15:37:42 -0700 > > > 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. > > > > It prints: > > ------------------------------------------------------------------ > ### pwd > /home/mccramer/data/pool10 > /home/mccramer/data/pool10 > ### find > . > . > . > > . > . > . > ### glob > ------------------------------------------------------------------ > > > The > "------------------------------------------------------------------"'s > are added by myself. After "### glob" there is following nothing > printed to stdout. To stderr there is the known error message: > > ./globtest2:8: no matches found: **/*.jpg > > (I called that script "globtest2"....) > > > Normally, in the root of the dirtree, where the jpgs are, there is no > jpg, but in the tree under the root there are jpgs (root == > "/home/mccramer/data/pool10"). > > Now I did a > > touch "test.jpg" > > in the root and run the script again. > Now, this single fake jpg in the root was found by the glob pattern > '**/*.jpg'...but nothing else. What zsh version (print $ZSH_VERSION)? Can you run an strace on the script (strace globtest2)? What does 'print -l **/*' say? > By the way: What happens, when you run this script on your machine in > a similiar environment/ under similiar conditions, Phil? Does it work > for you ? Yes, no problems... Phil.