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

Re: named directory bug



On Thu, Nov 01, 2001 at 17:43:07 +0000, Bart Schaefer wrote:
> That's odd.  What do you see if you run this function?
> 
>     tryit() {
> 	hash -d
> 	setopt localoptions xtrace
> 	eval "local +h nameddirs; nameddirs=(${(@kvq)nameddirs})"
>     }

greux:~> tryit                                                        <19:33:49
archive=/users/spaces/lefevre/private/archive
gmp=/users/spaces/logiciels/gmp/linux
hd=/global/greux/lefevre
in=/users/spaces/lefevre/private/in
latex=/usr/local/tex/texmf/tex/latex
mailarc=/users/spaces/lefevre/Mail/arc
oldmail=/global/greux/lefevre/private/oldmail
out=/users/spaces/lefevre/private/out
soft=/users/spaces/logiciels
tex=/usr/local/tex
tmparch=/global/greux/lefevre/private/tmparch
+tryit:3> eval local +h nameddirs; nameddirs=(out) local +h nameddirs; nameddirs=(/users/spaces/lefevre/private/out) local +h nameddirs; nameddirs=(tmparch) local +h nameddirs; nameddirs=(/global/greux/lefevre/private/tmparch) local +h nameddirs; nameddirs=(gmp) local +h nameddirs; nameddirs=(/users/spaces/logiciels/gmp/linux) local +h nameddirs; nameddirs=(hd) local +h nameddirs; nameddirs=(/global/greux/lefevre) local +h nameddirs; nameddirs=(oldmail) local +h nameddirs; nameddirs=(/global/greux/lefevre/private/oldmail) local +h nameddirs; nameddirs=(tex) local +h nameddirs; nameddirs=(/usr/local/tex) local +h nameddirs; nameddirs=(latex) local +h nameddirs; nameddirs=(/usr/local/tex/texmf/tex/latex) local +h nameddirs; nameddirs=(soft) local +h nameddirs; nameddirs=(/users/spaces/logiciels) local +h nameddirs; nameddirs=(mailarc) local +h nameddirs; nameddirs=(/users/spaces/lefevre/Mail/arc) local +h nameddirs; nameddirs=(archive) local +h nameddirs; nameddirs=(/users/spaces/lefevre/private/archive) local +h nameddirs; nameddirs=(in) local +h nameddirs; nameddirs=(/users/spaces/lefevre/private/in)
+tryit:3> local +h nameddirs
tryit:3: bad set of key/value pairs for associative array
+tryit:3> nameddirs=( out ) zsh: exit 1

-- 
Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <http://www.vinc17.org/> - 100%
validated HTML - Acorn Risc PC, Yellow Pig 17, Championnat International des
Jeux Mathématiques et Logiques, TETRHEX, etc.
Work: CR INRIA - computer arithmetic / SPACES project at LORIA



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