Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH] completion,rubber: suppress error messages from rubber
- X-seq: zsh-workers 28063
- From: JÃrg Sommer <joerg@xxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: [PATCH] completion,rubber: suppress error messages from rubber
- Date: Mon, 5 Jul 2010 13:43:02 +0200
- Cc: JÃrg Sommer <joerg@xxxxxxxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=simple/simple; d=gnuu.de; s=banki; t=1278330265; i=@xxxxxxxxxxxx; bh=EE/M92ZpJtDnenbK5PPR8KGiUJc3ULbG/ ZgOKBdOYWY=; h=From:To:Cc:Subject:Date:Message-Id; b=VCwMs6xqfPgmGn Th62VO+KXxZ54BJYH6YfqtwXI6ueK+mF7EBOmDuA4JnMmbyhZNFphSdsUrv9XPgYEH7 a6pLCYdnbmONjw88IJex3grwFLUdLVHe1tHVSScBHQ5k9utfTegW/XvtDtLQNQCGKYw 63uGFVKjtRn0EVIHZ1Tgn9c=
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
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