zshrc: Do not discard the output of compinit
authorFrank Terbeck <ft@bewatermyfriend.org>
Sun, 31 May 2009 15:58:10 +0000 (17:58 +0200)
committerFrank Terbeck <ft@bewatermyfriend.org>
Sun, 31 May 2009 15:58:10 +0000 (17:58 +0200)
When it calls compaudit, that can cause legitimate output, which
is important because it requires user interaction. Not printing such
output can make it seem like zsh is hanging forever.

debian/changelog
etc/zsh/zshrc

index 70d2e61..5132056 100644 (file)
@@ -1,3 +1,10 @@
+grml-etc-core (0.3.73) UNRELEASED; urgency=low
+
+  * zshrc: Fix a problem when calling compinit can seem to cause zsh startup
+    to hang forever. Reported by Rasmus Steinke.
+
+ -- Frank Terbeck <ft@grml.org>  Sun, 31 May 2009 17:53:28 +0200
+
 grml-etc-core (0.3.72) unstable; urgency=low
 
   * zshrc: Clarify how the context of the styles for directory based
index d142ef0..a204513 100644 (file)
@@ -865,8 +865,8 @@ alias run-help >&/dev/null && unalias run-help
 zrcautoload run-help # use via 'esc-h'
 
 # completion system
-if zrcautoload compinit && compinit 2>/dev/null ; then
-    compinit 2>/dev/null || print 'Notice: no compinit available :('
+if zrcautoload compinit ; then
+    compinit || print 'Notice: no compinit available :('
 else
     print 'Notice: no compinit available :('
     function zstyle { }