[PATCH] zsh_completion: hide commands' stderr when parsing their output

Brendan Cully brendan at kublai.com
Wed Apr 17 01:50:05 CDT 2013


On Wednesday, 17 April 2013 at 10:41, Nikolaj Sjujskij wrote:
> # HG changeset patch
> # User Nikolaj Sjujskij <sterkrig at myopera.com>
> # Date 1365878437 -14400
> #      Sat Apr 13 22:40:37 2013 +0400
> # Node ID e86de327d1a634f454556a34170826b1cad58f11
> # Parent  12acbea17625a1441503418f7f2f49aa3825cf2f
> zsh_completion: hide commands' stderr when parsing their output
> 
> If anything is wrong with hg command used, its stderr output should be silenced
> rather than mangle command line.
> 
> Change merged back from zsh.git repo, which diverged a bit since when in 2009
> Brendan Cully got this file (as it was in 7f349588665f) included there. Command
> invocations added to our `zsh_completion` since 2009 updated as well.

Thanks. I'm a little confused though, since _hg_cmd is defined thusly:

_hg_cmd() {
  _call_program hg HGPLAIN=1 hg "$_hg_cmd_globals[@]" "$@" 2> /dev/null
}

Shouldn't that already be suppressing stderr?


More information about the Mercurial-devel mailing list