zsh-users
 help / color / mirror / code / Atom feed
* `popd' is blocked on non-existent directory
@ 1996-10-16  2:02 John S Cooper
  1996-10-16  5:26 ` Bart Schaefer
  0 siblings, 1 reply; 3+ messages in thread
From: John S Cooper @ 1996-10-16  2:02 UTC (permalink / raw)
  To: zsh-users; +Cc: john.cooper


Under zsh 3.0.0, if a directory in the directory stack is removed, popd
seems to get "blocked".  In 2.5, the non-existent directory would just be
removed from the stack.  Here's what happens:

1175 kontiki%> dirs -v                                                  ~/elisp
0       ~/elisp
1       ~/elisp/foo
2       ~/elisp/foo/tm
3       ~Sputnik/sdtmail
1176 kontiki%>                                                          ~/elisp
1176 kontiki%> popd                                                     ~/elisp
popd: no such file or directory: /space/jsc/elisp/foo
1177 kontiki%> dirs -v                                                  ~/elisp
0       ~/elisp
1       ~/elisp/foo
2       ~/elisp/foo/tm
3       ~Sputnik/sdtmail
1178 kontiki%>                                                          ~/elisp


I'm now unable to pop the stack back past the non-existent "~/elisp/foo"
directory.  I know I can `cd -3' but it would be much better to have the
non-existent stuff cleaned out of the stack.

Is there a way to get the old behavior, i.e. have all non-existent
directories removed from the stack?

Also, when there's only one entry left on the dir stack, (I think) a popd
used to remove it and pop me to my home directory.  This is no longer the
case in 3.0.0 .

Thanks,

    --- John.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1996-10-17  1:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-10-16  2:02 `popd' is blocked on non-existent directory John S Cooper
1996-10-16  5:26 ` Bart Schaefer
1996-10-17  0:56   ` John S Cooper

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).