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