zsh-workers
 help / color / mirror / code / Atom feed
* 'pushd +2' rotates rather than extracts
@ 2004-06-16 21:48 Dave Yost
  2004-06-17  3:35 ` Vincent Stemen
  2004-06-17  5:13 ` Bart Schaefer
  0 siblings, 2 replies; 4+ messages in thread
From: Dave Yost @ 2004-06-16 21:48 UTC (permalink / raw)
  To: zsh-workers

This is how tcsh works with 'dextract' set:

% dirs
/tmp/a /tmp/b /tmp/c /tmp/d /tmp/e 
% pushd +2
0       /tmp/c
1       /tmp/a
2       /tmp/b
3       /tmp/d
4       /tmp/e

That is also how I believe zsh is documented to work (and how I would like it to work).

But here is what zsh does:

202 Z% echo $ZSH_VERSION
4.2.0
Z% dirs
/tmp/a /tmp/b /tmp/c /tmp/d /tmp/e
Z% pushd +2
/tmp/c /tmp/d /tmp/e /tmp/a /tmp/b
Z% 


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

end of thread, other threads:[~2004-06-17  7:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-16 21:48 'pushd +2' rotates rather than extracts Dave Yost
2004-06-17  3:35 ` Vincent Stemen
2004-06-17  5:13 ` Bart Schaefer
2004-06-17  7:17   ` Vincent Stemen

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).