With setopt no_unset in my config file, vcs_info fails with: VCS_INFO_maxexports:7: vcs: parameter not set The attached patch fixes it on my system, but I don't know if it's the best way to deal with the problem.