From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2544 invoked from network); 2 Nov 2000 16:44:58 -0000 Received: from sunsite.dk (HELO sunsite.auc.dk) (130.225.51.30) by ns1.primenet.com.au with SMTP; 2 Nov 2000 16:44:58 -0000 Received: (qmail 5981 invoked by alias); 2 Nov 2000 16:44:41 -0000 Mailing-List: contact zsh-users-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 3504 Received: (qmail 5972 invoked from network); 2 Nov 2000 16:44:39 -0000 From: "Bart Schaefer" Message-Id: <1001102164317.ZM19718@candle.brasslantern.com> Date: Thu, 2 Nov 2000 16:43:17 +0000 In-Reply-To: <2657.973141614@jpeek.com> Comments: In reply to Jerry Peek "Bug in "dirs a b c" where a b c are relative paths?" (Nov 1, 10:06pm) References: <2657.973141614@jpeek.com> X-Mailer: Z-Mail (5.0.0 30July97) To: Jerry Peek , zsh-users@sunsite.auc.dk Subject: Re: Bug in "dirs a b c" where a b c are relative paths? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Nov 1, 10:06pm, Jerry Peek wrote: } Subject: Bug in "dirs a b c" where a b c are relative paths? } } When "dirs a b c d e" puts directories on the stack, should it convert } any relative pathnames to absolute? Or does the manpage need a warning? If anything, it's a documentation problem. `dirs a b c d e' is just like assigning to a parameter; it doesn't actually change directories to each of the argument directories. The man page says only, "If arguments are specified, load them onto the directory stack, replacing anything that was there, and push the current directory onto the stack." It doesn't say anything about interpreting the arguments (which pushd and cd do at some length). A corresponding interesting manual omission is that cdpath is followed at popd time (and stack-cycling time with pushd), so actually if you did: cdpath=($PWD) dirs a b c d e You could then us `popd' to change to each of the stacked directories just as if they'd been made relative to $PWD by `dirs'. -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net