[issue1567] grml-zshrc: broken dirstack handling

Michael Prokop bts at bts.grml.org
Thu Jul 16 23:24:07 CEST 2015


New submission from Michael Prokop <mika at grml.org>:

Our recent changes to dirstack handling in grml-zshrc have broken the ~/.zdirs
handling. The DIRSTACKFILE is always overwritten every time you open a new zsh
session, so the directory history is always(?) lost.

Starting three shell sessions one after the other:

mika at heart ~ % cat ~/.zdirs
/home/mika
/home/grml/git-grml/grml-etc-core
mika at heart ~ % cd -
completing directory stack
0 -- /grml/git-grml/grml-etc-core
1 -- /home/grml/git-grml/grml-etc-core

mika at heart ~ % cd /grml/git-grml/grml2usb
chpwd(): Switching to profile: grml
mika at heart ~ggit/grml2usb (git)-[master] % cat ~/.zdirs
/grml/git-grml/grml2usb
/home/mika
/home/grml/git-grml/grml-etc-core
mika at heart ~ggit/grml2usb (git)-[master] % 

mika at heart /home/grml/git-grml/grml2usb (git)-[master] % cd /tmp
mika at heart /tmp % 
mika at heart /tmp % cat ~/.zdirs
/home/grml/git-grml/grml2usb
/grml/git-grml/grml2usb

Something is wrong, I can't spot the source of the bug yet though, reporting as
suggested by Frank, thx :)

----------
assignedto: ft
messages: 5192
nosy: ft, mika
priority: bug
status: unread
title: grml-zshrc: broken dirstack handling

_____________________________________
GRML issue tracker <bts at bts.grml.org>
<http://bts.grml.org/grml/issue1567>
_____________________________________


More information about the Bugs-changes mailing list