From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23999 invoked from network); 12 Apr 2009 11:35:20 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.5 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 12 Apr 2009 11:35:20 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 29905 invoked from network); 12 Apr 2009 11:34:57 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 12 Apr 2009 11:34:57 -0000 Received: (qmail 1786 invoked by alias); 12 Apr 2009 11:34:37 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 26831 Received: (qmail 1662 invoked from network); 12 Apr 2009 11:34:34 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 12 Apr 2009 11:34:34 -0000 Received: from vint.altlinux.org (vint.altlinux.org [194.107.17.35]) by bifrost.dotsrc.org (Postfix) with ESMTP id BE05A82D4B6A for ; Sun, 12 Apr 2009 13:34:17 +0200 (CEST) Received: from imap.altlinux.org (imap.altlinux.org [194.107.17.38]) by vint.altlinux.org (Postfix) with ESMTP id 8B2F73F80EDA for ; Sun, 12 Apr 2009 11:34:17 +0000 (UTC) Received: from [213.85.39.63] (unknown [213.85.39.63]) by imap.altlinux.org (Postfix) with ESMTPSA id 541BB3E48D8F for ; Sun, 12 Apr 2009 15:34:17 +0400 (MSD) Received: by hell.fortress (Postfix, from userid 500) id E6372360005A; Sun, 12 Apr 2009 15:34:16 +0400 (MSD) Resent-From: raorn@altlinux.org Resent-Date: Sun, 12 Apr 2009 15:34:16 +0400 Resent-Message-ID: <20090412113416.GF9102@altlinux.org> Resent-To: zsh-workers@sunsite.dk Received: from imap.altlinux.org [194.107.17.38] by hell.fortress with IMAP (fetchmail-6.3.9) for (single-drop); Sun, 12 Apr 2009 15:17:32 +0400 (MSD) Received: from [213.85.39.63] (unknown [213.85.39.63]) by imap.altlinux.org (Postfix) with ESMTPSA id C94243E48E30; Sun, 12 Apr 2009 15:15:57 +0400 (MSD) Received: by hell.fortress (Postfix, from userid 500) id 647E9360005B; Sun, 12 Apr 2009 15:15:57 +0400 (MSD) From: "Alexey I. Froloff" To: zsh workers Cc: "Alexey I. Froloff" Subject: [PATCH 3/4] _screen: fix session completion (ALT#16702). Date: Sun, 12 Apr 2009 15:15:56 +0400 Message-Id: <1239534957-9358-2-git-send-email-raorn@altlinux.org> X-Mailer: git-send-email 1.6.1.3.GIT In-Reply-To: <1239534957-9358-1-git-send-email-raorn@altlinux.org> References: <1239534957-9358-1-git-send-email-raorn@altlinux.org> X-Spam: no; 0.00; Alexey:01 Froloff:01 stderr:01 Unix:01 diff:01 --git:01 100644:01 sessions:01 session:03 altlinux:04 blank:95 ---:08 dev:09 raorn:09 org:09 X-Virus-Scanned: ClamAV 0.92.1/9225/Sun Apr 12 05:35:10 2009 on bifrost X-Virus-Status: Clean screen -ls prints pretty header and footer on stderr. Filter it out (patch by Evgenii Terechkov ). Signed-off-by: Alexey I. Froloff --- Completion/Unix/Command/_screen | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Completion/Unix/Command/_screen b/Completion/Unix/Command/_screen index be0e355..67c453a 100644 --- a/Completion/Unix/Command/_screen +++ b/Completion/Unix/Command/_screen @@ -98,19 +98,19 @@ if [[ -n $state ]]; then attached-sessions) sessions=( ${${${(M)${(f)"$(_call_program screen-sessions $words[1] \ - -ls)"}:#*[Aa]ttached*}##[[:blank:]]}%%[[:blank:]]*} + -ls 2>/dev/null)"}:#*[Aa]ttached*}##[[:blank:]]}%%[[:blank:]]*} ) ;; detached-sessions) sessions=( ${${${(M)${(f)"$(_call_program screen-sessions $words[1] \ - -ls)"}:#*[Dd]etached*}##[[:blank:]]}%%[[:blank:]]*} + -ls 2>/dev/null)"}:#*[Dd]etached*}##[[:blank:]]}%%[[:blank:]]*} ) ;; any-sessions) sessions=( ${${${(M)${(f)"$(_call_program screen-sessions $words[1] \ - -ls)"}:#*tached*}##[[:blank:]]}%%[[:blank:]]*} + -ls 2>/dev/null)"}:#*tached*}##[[:blank:]]}%%[[:blank:]]*} ) esac -- 1.6.1.3.GIT