From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17411 invoked by alias); 28 Oct 2015 23:50:00 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 20849 Received: (qmail 15528 invoked from network); 28 Oct 2015 23:49:59 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern_com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:references:to:subject:mime-version :content-type:content-transfer-encoding; bh=io+grUrd/FHeNLHDRQVHgQzLMEWOZY1iO2SRugxq51A=; b=Nopzndr1zw0Ehnk7H2aKX6r+49DSoTesD5/jTlme1nvIvNlN8Yw5fkxvylKuIgqJGK RwEMnPJzhy8q1q/srUqwJcxwtYo3VAW5oUpLONt8CreFRDnecjBAhYjFyc8EZkLyagPn Mw/sUDw2azI9uHPFPUBrHWLYJgqYIeeyYfOqOWwHITJBVhvy2LEN/px+pbxT8BbRTzHN yzoX3c88XhIjaDtZi460z+IjcpG9LiGsPY4fWWmcUAuo42NiIHJ4gh4MXllmUoas55WG i1G8VYJEHOp75smcQeKspDadKeiwD0SxMLr1ippc1SGm7N1RDn292CT/hVIvDbGCYQlD 3qfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:message-id:date:in-reply-to:references:to :subject:mime-version:content-type:content-transfer-encoding; bh=io+grUrd/FHeNLHDRQVHgQzLMEWOZY1iO2SRugxq51A=; b=Zga8ne5KQOebbhpU9+IvKLBPvvTk4P3PKJLQzZg/MubOc4sTYb/56ExHk3wPtDguXN tiZpHkir3mX/kFCmHH+0vzsiaAp+UaMTHGLRolwEE46/8Uyx44lymiq9fouGxkW/aDC6 HpSdid+7gVcmyTUp5VPk3mC2AVWPwoO468frZ4hCtuMhhqDPZQkU9GcOLAkpCZqJZgur jhgz3dQ+izN/sPgrTvEEn+o70dWFaBYPQ+ohwKKCXT4MkisFdR+JMe5Px2XPNTV+H9X6 rudlX79TW6R0KZ1p4uYIceZEyQxs5Z9bJe4uyy5DTT2ysogkrIj/g/qV15kQcPjoBrUI b3Sg== X-Gm-Message-State: ALoCoQkfLO/iSa5EJ0wEZfeyFvyHw+mXl8gAmRCqC8F1e9EdaHoFh8XWDGotK0xfCrl4GlhYEjKr X-Received: by 10.202.217.7 with SMTP id q7mr24825345oig.29.1446076198170; Wed, 28 Oct 2015 16:49:58 -0700 (PDT) From: Bart Schaefer Message-Id: <151028164955.ZM1462@torch.brasslantern.com> Date: Wed, 28 Oct 2015 16:49:55 -0700 In-Reply-To: =?iso-8859-1?Q?=3C20151028195059=2EGB3807=40laptop=2Elocal=3E?= =?iso-8859-1?Q?Comments=3A_In_reply_to_Andreas_Kusalananda_K=E4h=E4ri_=3C?= =?iso-8859-1?Q?andreas=2Ekahari=40bils=2Ese=3E?= =?iso-8859-1?Q?________=22Re=3A_GnuPG_2=2E1_with_Git=2C_problem_in_zsh=2C?= =?iso-8859-1?Q?_not_in_ksh=22_=28Oct_28=2C__8=3A50pm=29?= References: <20151028111101.GA3212@laptop.local> <20151028144739.GB3212@laptop.local> <20151028150201.495472ec@pwslap01u.europe.root.pri> <20151028162215.GA3807@laptop.local> <20151028195059.GB3807@laptop.local> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: Zsh Users Subject: Re: GnuPG 2.1 with Git, problem in zsh, not in ksh MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable On Oct 28, 8:50pm, Andreas Kusalananda K=E4h=E4ri wrote: } Subject: Re: GnuPG 2.1 with Git, problem in zsh, not in ksh } } I dunno. I was playing around with qemu the other night, and I typed } "qemu-system-x86_64" followed by and then and the shell } decided to execute the command (possibly in an attempt to figure out } its usage info somehow) which filled my terminal with all sorts of qemu } logging crap. Is that a side-effect of using "compinit"? Yes, that's a side-effect of using "compinit". The completion function _qemu invokes "qemu -M \?" to get a list of machines you might want to run; "logging crap" is probably because the writer of _qemu neglected to redirect stderr of that command. diff --git a/Completion/Unix/Command/_qemu b/Completion/Unix/Command/_qemu index db07eba..3c21c3e 100644 --- a/Completion/Unix/Command/_qemu +++ b/Completion/Unix/Command/_qemu @@ -2,7 +2,7 @@ =20 _qemu_log_items () { local -a opts hline - $service -d \? | while read -A hline; do + $service -d \? 2>/dev/null | while read -A hline; do [[ $hline[1] =3D Log ]] && continue opts=3D($opts "${hline[1]}[${hline[2,-1]}]") done @@ -11,7 +11,7 @@ _qemu_log_items () { =20 local _qemu_machines =20 -_qemu_machines=3D(${${${(f)"$($service -M \?)"}[2,-1]}%% *}) +_qemu_machines=3D(${${${(f)"$($service -M \? 2>/dev/null)"}[2,-1]}%% *}) =20 _arguments \ '-'{fda,fdb,hda,hdb,hdc,hdd,cdrom}':disk image:_files' \