BTS

Issue1055

Title zshrc dirstack question
Priority bug Status resolved
Superseder Nosy List dhahler, ft
Assigned To ft Topics

Created on 2011-09-22.12:48:10 by dhahler, last changed 2011-11-26.18:16:01 by mika.

Messages
msg4089 (view) Author: mika Date: 2011-11-26.18:16:01
We believe that your issue has been closed by the upload of
Version 0.4.02 of grml-etc-core from Michael Prokop <mika@grml.org>.
The explanation is attached below

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Sat, 26 Nov 2011 19:10:44 +0100
Source: grml-etc-core
Binary: grml-etc-core
Architecture: source all
Version: 0.4.02
Distribution: unstable
Urgency: low
Maintainer: Michael Prokop <mika@grml.org>
Changed-By: Michael Prokop <mika@grml.org>
Description: 
 grml-etc-core - core etcetera files for the grml system
Changes: 
 grml-etc-core (0.4.02) unstable; urgency=low
 .
   [ Frank Terbeck ]
   * [43090cf] zshrc: Make cd() behave with more than one argument
   * [fb6dc41] zshrc: Do not use bogus array index `0' in dirstack code
     [Closes: issue1055]
   * [2130d67] Fix spelling in debian/control
   * [219a342] gitignore: zsh byte-compiled files (*.zwc)
   * [7b4ae7e] zshrc: Stop setting $BROWSER
 .
   [ micah anderson ]
   * [b7cea1c] zshrc: hl() parameter fix
 .
   [ Christian Hofstaedtler ]
   * [8b7ef31] Remove unmaintained accessibility support
   * [093bbd1] Cleanup indenting in preinst, postrm
 .
   [ Sebastian Boehm ]
   * [11ce070] Add tmux.conf
 .
   [ Michael Prokop ]
   * [f5f88df] zshrc: use dpkg-query instead of grep-status for debs-by-
     size alias. Thanks to Thorsten Glaser <tg@mirbsd.org>
   * [91e6659] zshrc: drop 2mp3_192 function
   * [527ab11] lsb-functions: if we do not use colors then assume terminal
     can not handle endcols
   * [2eb78fd] zshrc: check for empty DONTSETRPROMPT and NOTITLE
 .
   [ Bernhard Tittelbach ]
   * [7ee39bb] zshrc: purge old zsh compile-files, echo newline
   * [87a8f70] zshrc: lsdisk mount and blocksize info
   * [fd1f19f] zshrc: fix readme, add liesmich, improve globbing
   * [e325343] zshrc: help-zle caching
   * [eb2c0c6] zshrc: readme(): remove superfluous line
   * [a443ac2] zshrc: inplaceMkDirs(): handle espaces and quotes better
   * [5173aea] zshrc: alias remove current working diretory
   * [a7cf6e3] zshrc: simple-extract: make curl follow redirects
Checksums-Sha1: 
 32d21a4040567d36a2eca2c3944087bc80110bd1 949 grml-etc-core_0.4.02.dsc
 cf76a4e628bfc2f74dd3a016e6629230f46a422a 154788 grml-etc-core_0.4.02.tar.gz
 306f71c0778e091f0ab1ae4fe6b71e825d3109ee 156284 grml-etc-core_0.4.02_all.deb
Checksums-Sha256: 
 d0dfe26c2889ff7a45081f7da02b279b3afb76c7d273435ed728c5885084580e 949 grml-etc-core_0.4.02.dsc
 fa96c6963e600b6831a414b1e8b9bb2781f7117c79c8fe6603106aa7354a5384 154788 grml-etc-core_0.4.02.tar.gz
 ab9e6da6a40029b580d7d99864cdbbcc1506aa81223e9a2cf407526ad5908588 156284 grml-etc-core_0.4.02_all.deb
Files: 
 5d7fff91e6aa5471a7433d5ea9c55e6a 949 grml optional grml-etc-core_0.4.02.dsc
 f9ca0d938a3e06af859f22c20cecd6cb 154788 grml optional grml-etc-core_0.4.02.tar.gz
 7141f42d80fca7bcc21f6fd8362552e5 156284 grml optional grml-etc-core_0.4.02_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iEYEARECAAYFAk7RLCoACgkQ2N9T+zficuh3NgCfarb9x7DeVhSJ9dnv+N1DXSKS
R3wAnRbpu0wJO7f+ZL+80hzjmHkg1Zda
=eU5q
-----END PGP SIGNATURE-----
msg3968 (view) Author: ft Date: 2011-09-27.10:34:13
Thanks. You're entirely right. The fix is in grml-etc-core's master branch
as of now and will be included in the next release.

Regards, Frank
msg3958 (view) Author: dhahler Date: 2011-09-22.12:48:09
There's a minor issue with your zshrc's dirstack handling.

I suppose the following should use the index "1", not "0":

    # "cd -" won't work after login by just setting $OLDPWD, so
    [[ -d $dirstack[0] ]] && cd $dirstack[0] && cd $OLDPWD

So the correct version would be:

    # "cd -" won't work after login by just setting $OLDPWD, so
    [[ -d $dirstack[1] ]] && cd $dirstack[1] && cd $OLDPWD

I have found this snippet here:
http://git.grml.org/?p=grml-etc-core.git;a=blob_plain;f=etc/zsh/zshrc;hb=HEAD



Thanks,
Daniel
History
Date User Action Args
2011-11-26 18:16:01mikasetstatus: fixed-in-git -> resolved
messages: + msg4089
2011-09-27 10:34:13ftsetmessages: + msg3968
2011-09-27 10:29:16ftsetstatus: unread -> fixed-in-git
2011-09-26 21:53:12chsetnosy: + dhahler
2011-09-26 21:52:48chsetpriority: bug
nosy: + ft, - dhahler
title: grml bug report: Daniel Hahler -> zshrc dirstack question
assignedto: ft
2011-09-22 12:48:10dhahlercreate