Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Command != command ???



From: Philippe Troin <phil@xxxxxxxx>
Subject: Re: Command != command ???
Date: 25 Jul 2005 12:20:24 -0700

> Meino Christian Cramer <Meino.Cramer@xxxxxx> writes:
> 
> > From: Philippe Troin <phil@xxxxxxxx>
> > Subject: Re: Command != command ???
> > Date: 25 Jul 2005 11:24:56 -0700
> > 
> > Thanks a lot for all your help ! ! !
> > 
> > My current "organisation" of my .z*-Files
> > 
> > I have split the .zshrc in files like:
> > .zsh.options, .zsh.functions etc which all are
> > sourced from .Zshrc like this
> > 
> > 		source $HOME/.zsh.options
> > 
> > I think, this is the same as if their script text would be a
> > part of .zshrc itsself.
> > 
> > Any other file "works" the "normal way":
> > 
> > Furthermore, I stripped the script to just the suspicious lines, a
> > dump of it can be found in the beginning of the following logfile (the
> > symptoms are the same...I only removed some escape sequences from the
> > PROMPT string, which otherwise would clutter the output.)
> > 
> > 
> > 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

;)

Meino



Messages sorted by: Reverse Date, Date, Thread, Author