Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
VCS_INFO functions break with setopt no_unset
- X-seq: zsh-workers 37345
- From: Philip Sequeira <phsequei@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: VCS_INFO functions break with setopt no_unset
- Date: Mon, 7 Dec 2015 18:23:25 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=U3gHgrYDpXCwdmxS2CdloQ0gWgWc0MF7DvAy3pcBl/A=; b=Vi3Ni+pIbfY2F2yGvEaRBnphDIcpza8uSNQSFWB1XQiG7isWuuXnPXWJTGQ11+MUa/ yihw8IRx9xsLCDUDNZsD6agUlmxBmVhc/Jm0aGrt4HejnJnxuOpjVAxPverAu/cpqV6W DbqvwlEBPdC71yR5Sc712NY1pyUVwy9/eSdHx3KxUosihdxNLmjwSCD5ODVosrU7csH+ BjMGesG3O5fMHnjMuTvGBW+e4RzAxsRCrZ6BoHxP/1i5atp3XDOfc3mG4TwST+mB1mer XlBb29U+wqf3V/f+9ICmnmt4ocHF2VNrUrnut4PW3GA0Bcdksl48tu506W50rTgDlD1u boMA==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
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.
diff --git a/Functions/VCS_Info/VCS_INFO_maxexports b/Functions/VCS_Info/VCS_INFO_maxexports
index ea95251..d697b9a 100644
--- a/Functions/VCS_Info/VCS_INFO_maxexports
+++ b/Functions/VCS_Info/VCS_INFO_maxexports
@@ -2,7 +2,7 @@
## Written by Frank Terbeck <ft@xxxxxxxxxxxxxxxxxxx>
## Distributed under the same BSD-ish license as zsh itself.
-setopt localoptions NO_shwordsplit
+setopt localoptions NO_shwordsplit unset
zstyle -s ":vcs_info:${vcs}:${usercontext}:${rrn}" "max-exports" maxexports || maxexports=2
if [[ ${maxexports} != <-> ]] || (( maxexports < 1 )); then
diff --git a/Functions/VCS_Info/VCS_INFO_set b/Functions/VCS_Info/VCS_INFO_set
index 484c793..e3f62ce 100644
--- a/Functions/VCS_Info/VCS_INFO_set
+++ b/Functions/VCS_Info/VCS_INFO_set
@@ -2,7 +2,7 @@
## Written by Frank Terbeck <ft@xxxxxxxxxxxxxxxxxxx>
## Distributed under the same BSD-ish license as zsh itself.
-setopt localoptions noksharrays NO_shwordsplit
+setopt localoptions noksharrays NO_shwordsplit unset
local -i i j
if [[ $1 == '--nvcs' ]] ; then
Messages sorted by:
Reverse Date,
Date,
Thread,
Author