From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4971 invoked from network); 7 Nov 2006 23:52:47 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.7 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 7 Nov 2006 23:52:47 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 29910 invoked from network); 7 Nov 2006 23:52:41 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 7 Nov 2006 23:52:41 -0000 Received: (qmail 10344 invoked by alias); 7 Nov 2006 23:52:25 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10955 Received: (qmail 10334 invoked from network); 7 Nov 2006 23:52:25 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 7 Nov 2006 23:52:25 -0000 Received: (qmail 28690 invoked from network); 7 Nov 2006 23:52:25 -0000 Received: from smtpout0178.sc1.cp.net (HELO n082.sc1.cp.net) (64.97.136.178) by a.mx.sunsite.dk with SMTP; 7 Nov 2006 23:52:21 -0000 Received: from sc (82.26.172.34) by n082.sc1.cp.net (7.2.069.1) id 454A15AB00097C1D; Tue, 7 Nov 2006 23:52:19 +0000 Received: from chazelas by sc with local (Exim 3.36 #1 (Debian)) id 1Ghajl-00041H-00; Tue, 07 Nov 2006 23:52:13 +0000 Date: Tue, 7 Nov 2006 23:52:13 +0000 From: Stephane Chazelas To: zsh-users@sunsite.dk, chesss Subject: Re: persistant Directory history? Message-ID: <20061107235213.GA5829@sc> Mail-Followup-To: zsh-users@sunsite.dk, chesss References: <5db995410611060845y53f673e6je029a9c60659f116@mail.gmail.com> <20061107145231.GA8117@let.rug.nl> <5db995410611071219q77820cfeg931ac950f744a276@mail.gmail.com> <20061107231812.GA14067@let.rug.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20061107231812.GA14067@let.rug.nl> User-Agent: Mutt/1.5.6i Sender: Stephane Chazelas On Wed, Nov 08, 2006 at 12:18:12AM +0100, Francisco Borges wrote: [...] > > dirstack=( $(< ~/.zdirs) ) [...] > Here are the caveats of that code: > > 1. it will fail if your directories have spaces in their names. To solve > this you have to use "dirs -p" to put one dir per line, and use "f" > to read them. [...] You're only moving the problem to directories with newline in there names. See my approach (use ${(qq)dirstack} and "."). -- Stéphane