Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: dirstack history: loving zsh, crashing zsh...
- X-seq: zsh-users 9994
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh User <zsh-users@xxxxxxxxxx>
- Subject: Re: dirstack history: loving zsh, crashing zsh...
- Date: Sun, 05 Mar 2006 01:19:47 -0800
- In-reply-to: <20060302175252.GA31734@xxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20060302175252.GA31734@xxxxxxxxxx>
On Mar 2, 6:52pm, Francisco Borges wrote:
}
} % typeset -U dirstack
}
} and the shell crashed. (I kid you not!)
Since no one else has pointed it out yet, the Right Thing here is
setopt pushd_ignore_dups
dirstack=( ${(u)$(< ~/.zdirs)} )
} 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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author