From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 667 invoked from network); 6 Mar 2006 13:01:52 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.0 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 6 Mar 2006 13:01:52 -0000 Received: (qmail 51036 invoked from network); 6 Mar 2006 13:01:46 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 6 Mar 2006 13:01:46 -0000 Received: (qmail 20333 invoked by alias); 6 Mar 2006 13:01:33 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9995 Received: (qmail 20322 invoked from network); 6 Mar 2006 13:01:32 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 6 Mar 2006 13:01:32 -0000 Received: (qmail 49430 invoked from network); 6 Mar 2006 13:01:32 -0000 Received: from dep.let.rug.nl (129.125.8.60) by a.mx.sunsite.dk with SMTP; 6 Mar 2006 13:01:31 -0000 Received: from dep.let.rug.nl ([129.125.8.60]) by dep.let.rug.nl (SMSSMTP 4.1.11.41) with SMTP id M2006030614012930246 for ; Mon, 06 Mar 2006 14:01:29 +0100 Received: from loki (postfix@loki.let.rug.nl [129.125.8.86]) by dep.let.rug.nl (8.12.10/8.12.10) with ESMTP id k26D1TFT006720 for ; Mon, 6 Mar 2006 14:01:29 +0100 (MET) Received: by loki (Postfix, from userid 7006) id D4891E765; Mon, 6 Mar 2006 14:01:41 +0100 (CET) Date: Mon, 6 Mar 2006 14:01:40 +0100 From: Francisco Borges To: Zsh User Subject: Re: [zsh] Re: dirstack history: loving zsh, crashing zsh... Message-ID: <20060306130139.GA9256@let.rug.nl> Mail-Followup-To: Zsh User References: <20060302175252.GA31734@let.rug.nl> <060305011947.ZM7258@torch.brasslantern.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <060305011947.ZM7258@torch.brasslantern.com> X-Operating-System: Linux/2.6.13.4 (i686) X-Editor: GNU Emacs 22.0.50.1 Organization: Alfa Informatica - Rijksuniversiteit Groningen User-Agent: Mutt/1.5.9i X-Whitelist: OK X-Scanned-By: milter-spamc/0.25.321 (dep.let.rug.nl [129.125.8.60]); Mon, 06 Mar 2006 14:01:29 +0100 Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by dep.let.rug.nl id k26D1TFT006720 =BB On Sun, Mar 05, 2006 at 01:19AM -0800, Bart Schaefer wrote: > Since no one else has pointed it out yet, the Right Thing here is > > setopt pushd_ignore_dups I have pushd_ignore_dups set, it won't stop that accumulation of repeated directories at .zdirs (essentially since "dirs" always include the CWD). > dirstack=3D( ${(u)$(< ~/.zdirs)} ) But the "u" parameter solves it indeed! Thank you very much for pointing it. > } OR you guys are now going to say: "Don't you know you're not supposed > } to use typeset with dirstack!!" > > You aren't, but the shell isn't supposed to crash, either. Is there any reason for why? I assumed I could treat dirstack as any other array since, well, the *manual* says dirstack is "a normal array". Anyway, the problem is solved. Thanks again! Francisco.