From 3a1756b7280e42d14de58ad90990cf4b04731b3b Mon Sep 17 00:00:00 2001 From: Daniel Shahaf Date: Wed, 1 Feb 2017 19:05:42 +0000 Subject: 40478: 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(-) (limited to 'Functions') diff --git a/Functions/VCS_Info/VCS_INFO_set-patch-format b/Functions/VCS_Info/VCS_INFO_set-patch-format index 84febabd9..c0617044c 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]} )) } -- cgit 1.4.1