BTS

Issue630

Title strange behaviour of zdirs - lots of duplicates
Priority bug Status resolved
Superseder Nosy List ft, mika
Assigned To ft Topics grml-etc-core, zsh

Created on 2009-02-21.12:17:43 by mika, last changed 2009-02-21.12:54:32 by mika.

Messages
msg1937 (view) Author: mika Date: 2009-02-21.12:53:23
* Frank Terbeck 20090221 13:34]:
> Michael Prokop:

> > Frank, do you have any ideas why I've such a lot of duplicates inside ~/.zdirs?
> > Makes the 'd' function of our zshrc quite hard to use for me. :)

> Hmpf, crap. :-/

> Can you add this line on top of your chpwd() function?

>     setopt localoptions xtrace

> And tell me what that spits out?
> ...I'd expect ${(u)foo} to take care of dupes. No idea what's going on
> without more information.

Gnaaa, my fault. :-/ I've had an older version of chpwd() in my
~/.zshrc.local - damned local testing. ;( Sorry for wasting your
time and thanks for the pointer to chpwd().

regards,
-mika-
msg1936 (view) Author: ft Date: 2009-02-21.12:34:29
Michael Prokop <bts@bts.grml.org>:
> % cat .zdirs
> /mnt/BACKUP/tmp
> /mnt/BACKUP
> /home/mika
> /home/mika
> /tmp
> /home/mika
> /grml/git/grml-etc-core
> /home/mika
> /grml/git/grml-live
> /home/mika
> /grml/git/grml2hd
> /home/mika
> /grml/git/grml-scripts
> /home/mika
> /home/mika
> /grml/git/grml-autoconfig
> /home/mika
> /home/mika
> /home/mika
> /grml/git/live-initramfs-grml
> /grml/git/live-initramfs-grml/debian/patches
> 
> Frank, do you have any ideas why I've such a lot of duplicates inside ~/.zdirs?
> Makes the 'd' function of our zshrc quite hard to use for me. :)

Hmpf, crap. :-/

Can you add this line on top of your chpwd() function?

    setopt localoptions xtrace

And tell me what that spits out?
...I'd expect ${(u)foo} to take care of dupes. No idea what's going on
without more information.

Regards, Frank
msg1934 (view) Author: mika Date: 2009-02-21.12:17:42
% cat .zdirs
/mnt/BACKUP/tmp
/mnt/BACKUP
/home/mika
/home/mika
/tmp
/home/mika
/grml/git/grml-etc-core
/home/mika
/grml/git/grml-live
/home/mika
/grml/git/grml2hd
/home/mika
/grml/git/grml-scripts
/home/mika
/home/mika
/grml/git/grml-autoconfig
/home/mika
/home/mika
/home/mika
/grml/git/live-initramfs-grml
/grml/git/live-initramfs-grml/debian/patches

Frank, do you have any ideas why I've such a lot of duplicates inside ~/.zdirs?
Makes the 'd' function of our zshrc quite hard to use for me. :)

regards,
-mika-
History
Date User Action Args
2009-02-21 12:54:32mikasetstatus: chatting -> resolved
nosy: mika, ft
2009-02-21 12:53:24mikasetnosy: mika, ft
messages: + msg1937
2009-02-21 12:34:29ftsetstatus: unread -> chatting
nosy: mika, ft
messages: + msg1936
2009-02-21 12:17:43mikacreate