Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Command != command ???
- X-seq: zsh-users 9169
- From: Philippe Troin <phil@xxxxxxxx>
- To: Meino Christian Cramer <Meino.Cramer@xxxxxx>
- Subject: Re: Command != command ???
- Date: 25 Jul 2005 11:24:56 -0700
- Cc: zsh-users@xxxxxxxxxx
- In-reply-to: <20050725.200029.41628640.Meino.Cramer@xxxxxx>
- Mail-copies-to: nobody
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20050724.074251.74755659.Meino.Cramer@xxxxxx> <87r7dnsvjn.fsf@xxxxxxxxxxxxxxxx> <20050725.200029.41628640.Meino.Cramer@xxxxxx>
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