zshrc: actively do: "setopt unset"
authorFrank Terbeck <ft@bewatermyfriend.org>
Sun, 11 Oct 2009 23:10:30 +0000 (01:10 +0200)
committerFrank Terbeck <ft@bewatermyfriend.org>
Sun, 11 Oct 2009 23:30:07 +0000 (01:30 +0200)
commita2eb5e1411e4ad4860c7c70735b9a59c703f16da
tree1ea077f2d543e36fba9325400badc4a05e56838e
parent0e01127a5a221a4e567fc30f17445b98d26f5e08
zshrc: actively do: "setopt unset"

It seems like some people think it is a good idea to unset that option.
That is a very bad idea though.

Why? Well, because of this:
% unset foo
% echo "foo$foo"
zsh: foo: parameter not set

That is totally incompatible with every other bourne like shell out
there. And it breaks many shell idioms.

In fact, it will break at least 'vcs_info()' and 'accept_line()' for us.
Which is unacceptable.

I also added 'emulate -L zsh' to accept-line() and vcs_info(), which are
two functions, that will fail horribly with 'unset' unset. That will
leave the shell intact even if someone wants to 'setopt no_unset' in
his/her .zshrc.local
debian/changelog
etc/zsh/zshrc