Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Command != command ???
- X-seq: zsh-users 9170
- From: Meino Christian Cramer <Meino.Cramer@xxxxxx>
- To: phil@xxxxxxxx
- Subject: Re: Command != command ???
- Date: Mon, 25 Jul 2005 20:53:05 +0200 (CEST)
- Cc: zsh-users@xxxxxxxxxx
- In-reply-to: <877jfeoi9z.fsf@xxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <87r7dnsvjn.fsf@xxxxxxxxxxxxxxxx> <20050725.200029.41628640.Meino.Cramer@xxxxxx> <877jfeoi9z.fsf@xxxxxxxxxxxxxxxx>
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
+/etc/zsh/zshenv:19> export 'mccinitlogger=:/etc/profile:/etc/profile:/etc/profile:/etc/profile'
+/etc/zsh/zshenv:37> [ -d /usr/local/sbin ']'
+/etc/zsh/zshenv:38> pathman /usr/local/sbin last
+pathman:1> echo /opt/gcc-3.4.n/bin/:/opt/gcc-3.4.n/bin/:/opt/kde/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/teTeX/bin/i686-pc-linux-gnu:/usr/netpbm/bin:/usr/ImgStar/Bin:/opt/gnome/bin:/opt/qt/bin:/opt/testinstall/bin:/opt/openoffice/program:/home/mccramer/bin:/home/mccramer/bin
+pathman:1> /bin/egrep -q '(^|:)/usr/local/sbin($|:)'
+/etc/zsh/zshenv:41> [ -d /usr/sbin ']'
+/etc/zsh/zshenv:42> pathman /usr/sbin last
+pathman:1> echo /opt/gcc-3.4.n/bin/:/opt/gcc-3.4.n/bin/:/opt/kde/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/teTeX/bin/i686-pc-linux-gnu:/usr/netpbm/bin:/usr/ImgStar/Bin:/opt/gnome/bin:/opt/qt/bin:/opt/testinstall/bin:/opt/openoffice/program:/home/mccramer/bin:/home/mccramer/bin
+pathman:1> /bin/egrep -q '(^|:)/usr/sbin($|:)'
+/etc/zsh/zshenv:45> [ -d /sbin ']'
+/etc/zsh/zshenv:46> pathman /sbin last
+pathman:1> echo /opt/gcc-3.4.n/bin/:/opt/gcc-3.4.n/bin/:/opt/kde/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/teTeX/bin/i686-pc-linux-gnu:/usr/netpbm/bin:/usr/ImgStar/Bin:/opt/gnome/bin:/opt/qt/bin:/opt/testinstall/bin:/opt/openoffice/program:/home/mccramer/bin:/home/mccramer/bin
+pathman:1> /bin/egrep -q '(^|:)/sbin($|:)'
+/etc/zsh/zshenv:49> [ -d /usr/local/bin ']'
+/etc/zsh/zshenv:50> pathman /usr/local/bin last
+pathman:1> echo /opt/gcc-3.4.n/bin/:/opt/gcc-3.4.n/bin/:/opt/kde/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/teTeX/bin/i686-pc-linux-gnu:/usr/netpbm/bin:/usr/ImgStar/Bin:/opt/gnome/bin:/opt/qt/bin:/opt/testinstall/bin:/opt/openoffice/program:/home/mccramer/bin:/home/mccramer/bin
+pathman:1> /bin/egrep -q '(^|:)/usr/local/bin($|:)'
+/etc/zsh/zshenv:53> [ -d /usr/bin ']'
+/etc/zsh/zshenv:54> pathman /usr/bin last
+pathman:1> echo /opt/gcc-3.4.n/bin/:/opt/gcc-3.4.n/bin/:/opt/kde/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/teTeX/bin/i686-pc-linux-gnu:/usr/netpbm/bin:/usr/ImgStar/Bin:/opt/gnome/bin:/opt/qt/bin:/opt/testinstall/bin:/opt/openoffice/program:/home/mccramer/bin:/home/mccramer/bin
+pathman:1> /bin/egrep -q '(^|:)/usr/bin($|:)'
+/etc/zsh/zshenv:58> [ -d /usr/X11R6/bin ']'
+/etc/zsh/zshenv:59> pathman /usr/X11R6/bin last
+pathman:1> echo /opt/gcc-3.4.n/bin/:/opt/gcc-3.4.n/bin/:/opt/kde/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/teTeX/bin/i686-pc-linux-gnu:/usr/netpbm/bin:/usr/ImgStar/Bin:/opt/gnome/bin:/opt/qt/bin:/opt/testinstall/bin:/opt/openoffice/program:/home/mccramer/bin:/home/mccramer/bin
+pathman:1> /bin/egrep -q '(^|:)/usr/X11R6/bin($|:)'
+/etc/zsh/zshenv:62> [ -d /usr/teTeX/bin/i686-pc-linux-gnu ']'
+/etc/zsh/zshenv:63> pathman /usr/teTeX/bin/i686-pc-linux-gnu last
+pathman:1> echo /opt/gcc-3.4.n/bin/:/opt/gcc-3.4.n/bin/:/opt/kde/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/teTeX/bin/i686-pc-linux-gnu:/usr/netpbm/bin:/usr/ImgStar/Bin:/opt/gnome/bin:/opt/qt/bin:/opt/testinstall/bin:/opt/openoffice/program:/home/mccramer/bin:/home/mccramer/bin
+pathman:1> /bin/egrep -q '(^|:)/usr/teTeX/bin/i686-pc-linux-gnu($|:)'
+/etc/zsh/zshenv:66> [ -d /usr/netpbm/bin ']'
+/etc/zsh/zshenv:67> pathman /usr/netpbm/bin last
+pathman:1> echo /opt/gcc-3.4.n/bin/:/opt/gcc-3.4.n/bin/:/opt/kde/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/teTeX/bin/i686-pc-linux-gnu:/usr/netpbm/bin:/usr/ImgStar/Bin:/opt/gnome/bin:/opt/qt/bin:/opt/testinstall/bin:/opt/openoffice/program:/home/mccramer/bin:/home/mccramer/bin
+pathman:1> /bin/egrep -q '(^|:)/usr/netpbm/bin($|:)'
+/etc/zsh/zshenv:70> [ -d /usr/ImgStar/Bin ']'
+/etc/zsh/zshenv:71> pathman /usr/ImgStar/Bin last
+pathman:1> echo /opt/gcc-3.4.n/bin/:/opt/gcc-3.4.n/bin/:/opt/kde/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/teTeX/bin/i686-pc-linux-gnu:/usr/netpbm/bin:/usr/ImgStar/Bin:/opt/gnome/bin:/opt/qt/bin:/opt/testinstall/bin:/opt/openoffice/program:/home/mccramer/bin:/home/mccramer/bin
+pathman:1> /bin/egrep -q '(^|:)/usr/ImgStar/Bin($|:)'
+/etc/zsh/zshenv:74> [ -d /opt/gnome/bin ']'
+/etc/zsh/zshenv:75> pathman /opt/gnome/bin last
+pathman:1> echo /opt/gcc-3.4.n/bin/:/opt/gcc-3.4.n/bin/:/opt/kde/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/teTeX/bin/i686-pc-linux-gnu:/usr/netpbm/bin:/usr/ImgStar/Bin:/opt/gnome/bin:/opt/qt/bin:/opt/testinstall/bin:/opt/openoffice/program:/home/mccramer/bin:/home/mccramer/bin
+pathman:1> /bin/egrep -q '(^|:)/opt/gnome/bin($|:)'
+/etc/zsh/zshenv:78> [ -d /opt/kde/bin ']'
+/etc/zsh/zshenv:79> pathman /opt/kde/bin last
+pathman:1> echo /opt/gcc-3.4.n/bin/:/opt/gcc-3.4.n/bin/:/opt/kde/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/teTeX/bin/i686-pc-linux-gnu:/usr/netpbm/bin:/usr/ImgStar/Bin:/opt/gnome/bin:/opt/qt/bin:/opt/testinstall/bin:/opt/openoffice/program:/home/mccramer/bin:/home/mccramer/bin
+pathman:1> /bin/egrep -q '(^|:)/opt/kde/bin($|:)'
+/etc/zsh/zshenv:83> [ -d /opt/qt/bin ']'
+/etc/zsh/zshenv:84> pathman /opt/qt/bin last
+pathman:1> echo /opt/gcc-3.4.n/bin/:/opt/gcc-3.4.n/bin/:/opt/kde/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/teTeX/bin/i686-pc-linux-gnu:/usr/netpbm/bin:/usr/ImgStar/Bin:/opt/gnome/bin:/opt/qt/bin:/opt/testinstall/bin:/opt/openoffice/program:/home/mccramer/bin:/home/mccramer/bin
+pathman:1> /bin/egrep -q '(^|:)/opt/qt/bin($|:)'
+/etc/zsh/zshenv:87> [ -d /opt/testinstall/bin ']'
+/etc/zsh/zshenv:88> pathman /opt/testinstall/bin last
+pathman:1> echo /opt/gcc-3.4.n/bin/:/opt/gcc-3.4.n/bin/:/opt/kde/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/teTeX/bin/i686-pc-linux-gnu:/usr/netpbm/bin:/usr/ImgStar/Bin:/opt/gnome/bin:/opt/qt/bin:/opt/testinstall/bin:/opt/openoffice/program:/home/mccramer/bin:/home/mccramer/bin
+pathman:1> /bin/egrep -q '(^|:)/opt/testinstall/bin($|:)'
+/etc/zsh/zshenv:91> [ -d /opt/openoffice/program ']'
+/etc/zsh/zshenv:92> pathman /opt/openoffice/program last
+pathman:1> echo /opt/gcc-3.4.n/bin/:/opt/gcc-3.4.n/bin/:/opt/kde/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/teTeX/bin/i686-pc-linux-gnu:/usr/netpbm/bin:/usr/ImgStar/Bin:/opt/gnome/bin:/opt/qt/bin:/opt/testinstall/bin:/opt/openoffice/program:/home/mccramer/bin:/home/mccramer/bin
+pathman:1> /bin/egrep -q '(^|:)/opt/openoffice/program($|:)'
+/etc/zsh/zshenv:95> [ -d /usr/mysql/bin ']'
+/etc/zsh/zshenv:99> [ -d /opt/kde/sbin ']'
+/etc/zsh/zshenv:103> [ -d /opt/mozilla/bin ']'
+/etc/zsh/zshenv:125> [ -z '' -a ! -f /home/mccramer/.inputrc ']'
+/etc/zsh/zshenv:130> [ -f /etc/dircolors ']'
+/etc/zsh/zshenv:139> export PATH HISTSIZE PS1 LS_COLORS INPUTRC
+/etc/zsh/zshenv:142> export 'KDEWM=/usr/bin/icewm'
+/etc/zsh/zshenv:145> export 'MEPATH=/usr/share/me'
+/home/mccramer/.zshenv:4> export 'TERM=xterm-color'
+/home/mccramer/.zshenv:9> export 'CFLAGS=-O3 -m3dnow -march=athlon-xp -mcpu=athlon-xp -mfpmath=sse -funroll-loops -fomit-frame-pointer -fforce-mem -fforce-addr -finline-functions -falign-functions=4 -mpreferred-stack-boundary=2'
+/home/mccramer/.zshenv:12> export 'MAIL=/var/spool/mail/mccramer'
+/home/mccramer/.zshenv:14> export 'LESSOPEN=|/usr/bin/lesspipe.sh %s'
+/home/mccramer/.zshenv:15> export 'LESS='
+/home/mccramer/.zshenv:17> export 'HELPDIR=/usr/local/lib/zsh/help'
+/home/mccramer/.zshenv:26> export 'CXXFLAGS=-O3 -m3dnow -march=athlon-xp -mcpu=athlon-xp -mfpmath=sse -funroll-loops -fomit-frame-pointer -fforce-mem -fforce-addr -finline-functions -falign-functions=4 -mpreferred-stack-boundary=2'
+/home/mccramer/.zshenv:28> export 'PKG_CONFIG_PATH=/usr/lib/pkgconfig'
+/home/mccramer/.zshenv:31> export 'AXIOM=/usr/axiom/mnt/linux'
+/home/mccramer/.zshenv:34> export 'GNOME_PREFIX=/opt/gnome'
+/home/mccramer/.zshenv:35> export 'GNOME_LIBCONFIG_PATH=/usr/lib'
+/home/mccramer/.zshenv:39> export 'PKG_CONFIG_PATH=/usr/lib/pkgconfig:/opt/gnome/lib/pkgconfig:/opt/kde/lib/pkgconfig'
+/home/mccramer/.zshenv:43> export 'PKG_CONFIG_PATH=/usr/lib/pkgconfig:/opt/gnome/lib/pkgconfig:/opt/kde/lib/pkgconfig:/usr/X11R6/lib/pkgconfig'
+/home/mccramer/.zshenv:51> export 'PKG_CONFIG_PATH=/usr/lib/pkgconfig:/opt/gnome/lib/pkgconfig:/opt/kde/lib/pkgconfig:/usr/X11R6/lib/pkgconfig:/opt/mozilla/lib/pkgconfig'
+/home/mccramer/.zshenv:61> export 'PYTHONPATH=/usr/lib/python2.3:/home/mccramer:/usr/lib/python2.3/plat-linux2:/usr/lib/python2.3/lib-tk:/usr/lib/python2.3/lib-dynload:/usr/lib/python2.3/site-packages'
+/home/mccramer/.zshenv:62> export 'PYTHONHOME=/usr'
+/home/mccramer/.zshenv:65> export 'MEUSERPATH=/home/mccramer/.me'
+/home/mccramer/.zshenv:68> export 'LESS=-R'
+/home/mccramer/.zshenv:74> export 'XDG_DATA_DIRS=/root/.local/share:/usr/local/share/:/usr/share/:/opt/gnome2/share:/opt/gnome2/share/'
+/home/mccramer/.zshenv:78> export G_BROKEN_FILENAMES
+/home/mccramer/.zshenv:79> export G_FILENAME_ENCODING
+/home/mccramer/.zshenv:82> export 'TEXDOCVIEW_dvi=kgh %s'
+/home/mccramer/.zshenv:83> export 'TEXDOCVIEW_pdf=kgh %s'
+/home/mccramer/.zshenv:84> export 'TEXDOCVIEW_ps=kghostview %s'
+/home/mccramer/.zshenv:85> export 'TEXDOCVIEW_html=dillo %s'
+/home/mccramer/.zshenv:88> export 'FRACTDIR=/usr/share/xfractint'
+/home/mccramer/.zshenv:89> export 'SRCDIR=/home/mccramer/xfractint'
+/home/mccramer/.zshenv:91> export 'QTDIR=/opt/qt'
+/home/mccramer/.zshenv:93> export 'PS1=[\W/] :'
+/home/mccramer/.zshenv:95> export 'LESSOPEN=|/usr/bin/lesspipe.sh %s'
+/home/mccramer/.zshenv:96> export 'LESS='
+/home/mccramer/.zshenv:98> export 'PERLIO=stdio'
+/home/mccramer/.zshenv:100> export 'PILOTPORT=/dev/tts/0'
+/home/mccramer/.zshenv:102> export 'MC_COLOR_TABLE=base_color=normal=blue,lightgray:normal=blue,lightgray:menuhot=red,cyan:menuhotsel=red,cyan:directory=blue,lightgray:executable=blue,lightgray:link=red,lightgray:device=blue,lightgray:special=blue,lightgray:core=blue,lightgray:hidden=blue,lightgray:temp=blue,lightgray:doc=blue,lightgray:archive=blue,lightgray:source=blue,lightgray:media=blue,lightgray:graph=blue,lightgray:database=blue,lightgray:marked=black,yellow:stalelink=black,brightred:editnormal=blue,lightgray'
+/home/mccramer/.zshenv:125> export 'EDITOR=vim'
+/home/mccramer/.zshenv:128> export 'QTDIR=/opt/qt'
+/home/mccramer/.zshenv:131> export 'G_BROKEN_FILENAMES='
+/home/mccramer/.zshenv:134> export 'KDEDIR=/opt/kde'
+/home/mccramer/.zshenv:136> export 'KDEDIRS=/opt/kde'
+/home/mccramer/.zshenv:143> export PATH HISTSIZE LS_COLORS INPUTRC
+/home/mccramer/.zshenv:144> export 'KDEWM=/usr/bin/icewm'
+/home/mccramer/.zshenv:1> dircolors /home/mccramer/.DIR_COLORS
+/home/mccramer/.zshenv:146> eval 'LS_COLORS='\''no=00:fi=00:di=00;32:ln=00;36:pi=40;33:so=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:ex=00;31:*.cmd=01;32:*.exe=01;32:*.com=01;32:*.btm=01;32:*.bat=01;32:*.tar=00;31:*.tgz=01;31:*.bz2=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.ZIP=01;31:*.z=01;31:*.7z=01;31:*.Z=01;31:*.gz=01;31:*.rpm=01;31:*.jpg=01;35:*.gif=01;35:*.bmp=01;35:*.png=01;35:*.pgm=01;35:*.ppm=01;35:*.pnm=01;35:*.pcx=01;35:*.xbm=01;35:*.xpm=01;35:*.xcf=01;35:*.tif=01;35:*.GIF=01;35:*.BMP=01;35:*.PNG=01;35:*.PGM=01;35:*.PPM=01;35:*.PNM=01;35:*.PCX=01;35:*.XBM=01;35:*.XPM=01;35:*.XCF=01;35:*.TIF=01;35:'\'';' export LS_COLORS
+(eval):1> LS_COLORS='no=00:fi=00:di=00;32:ln=00;36:pi=40;33:so=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:ex=00;31:*.cmd=01;32:*.exe=01;32:*.com=01;32:*.btm=01;32:*.bat=01;32:*.tar=00;31:*.tgz=01;31:*.bz2=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.ZIP=01;31:*.z=01;31:*.7z=01;31:*.Z=01;31:*.gz=01;31:*.rpm=01;31:*.jpg=01;35:*.gif=01;35:*.bmp=01;35:*.png=01;35:*.pgm=01;35:*.ppm=01;35:*.pnm=01;35:*.pcx=01;35:*.xbm=01;35:*.xpm=01;35:*.xcf=01;35:*.tif=01;35:*.GIF=01;35:*.BMP=01;35:*.PNG=01;35:*.PGM=01;35:*.PPM=01;35:*.PNM=01;35:*.PCX=01;35:*.XBM=01;35:*.XPM=01;35:*.XCF=01;35:*.TIF=01;35:'
+(eval):1> export LS_COLORS
+./globtest:2> setopt extendedglob
./globtest:3: no matches found: **/*.jpg
Script done on Mon Jul 25 20:44:13 2005
> 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