From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13067 invoked from network); 17 Jun 2004 05:13:44 -0000 Received: from thor.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.86) by ns1.primenet.com.au with SMTP; 17 Jun 2004 05:13:44 -0000 Received: (qmail 9483 invoked from network); 17 Jun 2004 05:13:23 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 17 Jun 2004 05:13:23 -0000 Received: (qmail 5759 invoked by alias); 17 Jun 2004 05:13:20 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 20067 Received: (qmail 5749 invoked from network); 17 Jun 2004 05:13:20 -0000 Received: from thor.dotsrc.org (HELO a.mx.sunsite.dk) (qmailr@130.225.247.86) by sunsite.dk with SMTP; 17 Jun 2004 05:13:17 -0000 Received: (qmail 9260 invoked from network); 17 Jun 2004 05:13:17 -0000 Received: from moonbase.zanshin.com (root@64.84.47.139) by a.mx.sunsite.dk with SMTP; 17 Jun 2004 05:13:15 -0000 Received: from toltec.zanshin.com (toltec.zanshin.com [64.84.47.166]) by moonbase.zanshin.com (8.12.11/8.12.11) with ESMTP id i5H5DDxN001085 for ; Wed, 16 Jun 2004 22:13:13 -0700 Date: Wed, 16 Jun 2004 22:13:13 -0700 (PDT) From: Bart Schaefer Sender: schaefer@toltec.zanshin.com Reply-To: zsh-workers@sunsite.dk To: zsh-workers@sunsite.dk Subject: Re: 'pushd +2' rotates rather than extracts In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Checker-Version: SpamAssassin 2.63 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, hits=0.0 required=6.0 tests=none autolearn=no version=2.63 X-Spam-Hits: 0.0 According to the documentation (man zshbuiltins): The third form of pushd changes directory by rotating the directory list. And then in Functions/Example/pushd, which unfortunately is not referenced in the User Contributions section of the manual, one finds: # pushd function to emulate the old zsh behaviour. With this function # pushd +/-n just lifts the selected element to the top of the stack # instead of just cycling the stack.