From 4215a0fa44264e12507b121c3ba1f05b7bbb257d Mon Sep 17 00:00:00 2001 From: huyz Date: Tue, 11 Dec 2012 21:37:17 -0800 Subject: [PATCH] Fix: must check for existence of .zcompdump before comparing times --- runcoms/zlogin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runcoms/zlogin b/runcoms/zlogin index 9e315775..1ac8945f 100644 --- a/runcoms/zlogin +++ b/runcoms/zlogin @@ -9,7 +9,7 @@ { # Compile the completion dump to increase startup speed. zcompdump="${ZDOTDIR:-$HOME}/.zcompdump" - if [[ "$zcompdump" -nt "${zcompdump}.zwc" || ! -s "${zcompdump}.zwc" ]]; then + if [[ -e "$zcompdump" && ("$zcompdump" -nt "${zcompdump}.zwc" || ! -s "${zcompdump}.zwc") ]]; zcompile "$zcompdump" fi