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

Re: Command != command ???



Meino Christian Cramer <Meino.Cramer@xxxxxx> writes:

> Hmmm....my script now looks like this:
> 
>    #!/bin/zsh
>    setopt extendedglob

As mentionned earlier on in the thread, this is not necessary anymore.

> 
>    if [ ! -d ./EXIF ]
>    then
>        mkdir ./EXIF ]
>    fi    
>    
>    for i in **/*.jpg                    <<<<<---- line 9
>    do
>        echo -n "examine $i..."
>        idx=0;
>        fn=$(basename $i .jpg)
>        fnex=${fn}.exif-${idx}.txt
>        while [ -f ./EXIF/${fnex} ]
>        do
>            idx=$(( idx + 1 ))
>            fnex=${fn}.exif-${idx}.txt
>        done
>        print "...writing ./EXIF/${fnex}"
>        jhead -v $i > ./EXIF/${fnex}
>    done
> 
> ...but...still getting this:
> 
> ./mkexif.sh:9: no matches found: **/*.jpg
> 
> After all this I must confess: My confusion became now one of my 
> lesser problems... ;O)

Try running the script as:

  /bin/zsh -x script

And send us the result.  As Bart wrote, it might be some of your ~/.z*
files messing up the cwd.

Phil.



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