zsh-workers
 help / color / mirror / code / Atom feed
From: Clint Adams <schizo@debian.org>
To: Vincent Lefevre <vincent@vinc17.org>, 432036@bugs.debian.org
Cc: zsh-workers@sunsite.dk
Subject: Re: Bug#432036: _deb_packages: redirect apt-cache stderr to /dev/null
Date: Fri, 6 Jul 2007 19:51:51 -0400	[thread overview]
Message-ID: <20070706235151.GA21867@scowler.net> (raw)
In-Reply-To: <20070706220600.GA26523@ay.vinc17.org>

On Sat, Jul 07, 2007 at 12:06:00AM +0200, Vincent Lefevre wrote:
> /usr/share/zsh/4.3.4/functions/Completion/Debian/_deb_packages contains:
> 
>     _deb_packages_cache_avail=(
>       ${(f)"$(apt-cache --generate pkgnames)"}
>     )
> 
> However, when some source package list doesn't exist, apt-cache outputs
> warnings to stderr. In the completion code, these warnings go to the
> terminal. They should be filtered with "2> /dev/null":
> 
>     _deb_packages_cache_avail=(
>       ${(f)"$(apt-cache --generate pkgnames 2> /dev/null)"}
>     )

Index: Completion/Debian/Type/_deb_packages
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Debian/Type/_deb_packages,v
retrieving revision 1.6
diff -u -r1.6 _deb_packages
--- Completion/Debian/Type/_deb_packages	24 Apr 2005 17:49:53 -0000	1.6
+++ Completion/Debian/Type/_deb_packages	6 Jul 2007 23:50:16 -0000
@@ -7,7 +7,7 @@
       _cache_invalid DEBS_avail ) && ! _retrieve_cache DEBS_avail;
   then
     _deb_packages_cache_avail=(
-      ${(f)"$(apt-cache --generate pkgnames)"}
+      ${(f)"$(apt-cache --generate pkgnames 2>/dev/null)"}
     )
 
     _store_cache DEBS_avail _deb_packages_cache_avail


           reply	other threads:[~2007-07-06 23:52 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <20070706220600.GA26523@ay.vinc17.org>]

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=20070706235151.GA21867@scowler.net \
    --to=schizo@debian.org \
    --cc=432036@bugs.debian.org \
    --cc=vincent@vinc17.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).