Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: dirstack history: loving zsh, crashing zsh...



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