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

[PATCH 1/4] vcs_info set-patch-format: Guard against empty variable elision.



---
 Functions/VCS_Info/VCS_INFO_set-patch-format | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Functions/VCS_Info/VCS_INFO_set-patch-format b/Functions/VCS_Info/VCS_INFO_set-patch-format
index 84febab..c061704 100644
--- a/Functions/VCS_Info/VCS_INFO_set-patch-format
+++ b/Functions/VCS_Info/VCS_INFO_set-patch-format
@@ -43,9 +43,9 @@
 
     hook_com=(
       applied-n ${(P)#1}
-      applied ${(P)2}
+      applied "${(P)2}"
       unapplied-n ${(P)#3}
-      unapplied ${(P)4}
+      unapplied "${(P)4}"
     )
     hook_com[all-n]=$(( ${hook_com[applied-n]} + ${hook_com[unapplied-n]} ))
 }



Messages sorted by: Reverse Date, Date, Thread, Author