Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: named directory bug
- X-seq: zsh-users 4453
- From: Vincent Lefevre <vincent@xxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: named directory bug
- Date: Thu, 1 Nov 2001 19:35:53 +0100
- In-reply-to: <1011101174307.ZM3501@xxxxxxxxxxxxxxxxxxxxxxx>
- Mail-followup-to: zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20011031153021.A18126@xxxxxxxxxxxx> <1011031153124.ZM31705@xxxxxxxxxxxxxxxxxxxxxxx> <20011031202104.A11550@xxxxxxxxxxxxxx> <1011101151440.ZM32669@xxxxxxxxxxxxxxxxxxxxxxx> <20011101173950.A23095@xxxxxxxxxxxxxx> <1011101174307.ZM3501@xxxxxxxxxxxxxxxxxxxxxxx>
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