From: "Alexey I. Froloff" <raorn@altlinux.org>
To: zsh workers <zsh-workers@sunsite.dk>
Cc: "Alexey I. Froloff" <raorn@altlinux.org>
Subject: [PATCH 3/4] _screen: fix session completion (ALT#16702).
Date: Sun, 12 Apr 2009 15:15:56 +0400 [thread overview]
Message-ID: <1239534957-9358-2-git-send-email-raorn@altlinux.org> (raw)
In-Reply-To: <1239534957-9358-1-git-send-email-raorn@altlinux.org>
screen -ls prints pretty header and footer on stderr. Filter it out
(patch by Evgenii Terechkov <evg@altlinux.org>).
Signed-off-by: Alexey I. Froloff <raorn@altlinux.org>
---
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
next prev parent reply other threads:[~2009-04-12 11:35 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-12 11:15 [PATCH 2/4] _rsync: fix rsync remote file completion (ALT#12958) Alexey I. Froloff
2009-04-12 11:15 ` Alexey I. Froloff [this message]
2009-04-12 11:15 ` [PATCH 4/4] _man: strip section and extension from all manual pages Alexey I. Froloff
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1239534957-9358-2-git-send-email-raorn@altlinux.org \
--to=raorn@altlinux.org \
--cc=zsh-workers@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).