* Re: Bug#432036: _deb_packages: redirect apt-cache stderr to /dev/null
[not found] <20070706220600.GA26523@ay.vinc17.org>
@ 2007-07-06 23:51 ` Clint Adams
0 siblings, 0 replies; only message in thread
From: Clint Adams @ 2007-07-06 23:51 UTC (permalink / raw)
To: Vincent Lefevre, 432036; +Cc: zsh-workers
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-07-06 23:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <20070706220600.GA26523@ay.vinc17.org>
2007-07-06 23:51 ` Bug#432036: _deb_packages: redirect apt-cache stderr to /dev/null Clint Adams
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).