Re: why does cd change DIRSTACK?

2008-02-16 Thread Micha Wiedenmann
Chet Ramey schrieb: I don't understand why cd changes DIRSTACK. From the manpage I got the impression that only pushd and popd change DIRSTACK (besides dir -c). The current directory is always the first entry in the directory stack (index 0). As such, cd will always change it. Is there anyon

why does cd change DIRSTACK?

2008-02-10 Thread Micha Wiedenmann
Hi, I don't understand why cd changes DIRSTACK. From the manpage I got the impression that only pushd and popd change DIRSTACK (besides dir -c). Assume I want to cycle some favorite directories (/usr, /var, /etc). I thought I had to add them via pushd and could use cd ~N; to switch easily be