* PATCH: vcs_info: Fix a bug in vcs_info_lastmsg
@ 2010-02-17 7:17 Frank Terbeck
0 siblings, 0 replies; only message in thread
From: Frank Terbeck @ 2010-02-17 7:17 UTC (permalink / raw)
To: zsh-workers
When a format starts with a dash, that triggers bad option errors
in some builtins. This should fix it.
Regards, Frank
---
Functions/VCS_Info/vcs_info_lastmsg | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/Functions/VCS_Info/vcs_info_lastmsg b/Functions/VCS_Info/vcs_info_lastmsg
index fe33590..ddfaaf8 100644
--- a/Functions/VCS_Info/vcs_info_lastmsg
+++ b/Functions/VCS_Info/vcs_info_lastmsg
@@ -9,11 +9,11 @@ local -ix maxexports
VCS_INFO_maxexports
for i in {0..$((maxexports - 1))} ; do
- printf '$vcs_info_msg_%d_: "' $i
+ printf -- '$vcs_info_msg_%d_: "' $i
if zstyle -T ':vcs_info:formats:command:-all-' use-prompt-escapes ; then
- print -nP ${(P)${:-vcs_info_msg_${i}_}}
+ print -nP -- ${(P)${:-vcs_info_msg_${i}_}}
else
- print -n ${(P)${:-vcs_info_msg_${i}_}}
+ print -n -- ${(P)${:-vcs_info_msg_${i}_}}
fi
printf '"\n'
done
--
1.7.0
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-02-17 7:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-17 7:17 PATCH: vcs_info: Fix a bug in vcs_info_lastmsg Frank Terbeck
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).