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

[PATCH] completion,rubber: suppress error messages from rubber



If rubber prints any warning or error messages (e.g. python messages
about old modules), these messages clutter the terminal. Hence, suppress
them.
---
 Completion/Unix/Command/_rubber |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/Completion/Unix/Command/_rubber b/Completion/Unix/Command/_rubber
index 6114256..526abaa 100644
--- a/Completion/Unix/Command/_rubber
+++ b/Completion/Unix/Command/_rubber
@@ -2,7 +2,7 @@
 
 local _rubber_version _rubber_path _rubber_modules _rubber_args
 
-eval $(rubber --version | sed 's/^.* \([^ ]*\): */_rubber_\1=/')
+eval $(rubber --version 2>/dev/null | sed 's/^.* \([^ ]*\): */_rubber_\1=/')
 if [[ ${_rubber_version#0} != $_rubber_version ]]; then
   _rubber_modules=(
     $_rubber_path/rubber/modules/[^_]*.py(N:r:t)
-- 
1.7.1



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