Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: GnuPG 2.1 with Git, problem in zsh, not in ksh
- X-seq: zsh-users 20849
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: GnuPG 2.1 with Git, problem in zsh, not in ksh
- Date: Wed, 28 Oct 2015 16:49:55 -0700
- 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==
- In-reply-to: <20151028195059.GB3807@laptop.local>Comments: In reply to Andreas Kusalananda Kähäri <andreas.kahari@bils.se> "Re: GnuPG 2.1 with Git, problem in zsh, not in ksh" (Oct 28, 8:50pm)
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <20151028111101.GA3212@laptop.local> <CAH_OBidXA9A=J_h2H9wzjQL2ZrckgvLa_=q66rUoibpG9DSadw@mail.gmail.com> <20151028144739.GB3212@laptop.local> <20151028150201.495472ec@pwslap01u.europe.root.pri> <20151028162215.GA3807@laptop.local> <CAH_OBif1Joh3famU-nDMoZvzN7Y4uM7yDT5FQQRA2G9rb71mfw@mail.gmail.com> <20151028195059.GB3807@laptop.local>
On Oct 28, 8:50pm, Andreas Kusalananda Kähäri 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 <space> and then <tab> 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 @@
_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] = Log ]] && continue
opts=($opts "${hline[1]}[${hline[2,-1]}]")
done
@@ -11,7 +11,7 @@ _qemu_log_items () {
local _qemu_machines
-_qemu_machines=(${${${(f)"$($service -M \?)"}[2,-1]}%% *})
+_qemu_machines=(${${${(f)"$($service -M \? 2>/dev/null)"}[2,-1]}%% *})
_arguments \
'-'{fda,fdb,hda,hdb,hdc,hdd,cdrom}':disk image:_files' \
- References:
- GnuPG 2.1 with Git, problem in zsh, not in ksh
- From: Andreas Kusalananda Kähäri
- Re: GnuPG 2.1 with Git, problem in zsh, not in ksh
- Re: GnuPG 2.1 with Git, problem in zsh, not in ksh
- From: Andreas Kusalananda Kähäri
- Re: GnuPG 2.1 with Git, problem in zsh, not in ksh
- Re: GnuPG 2.1 with Git, problem in zsh, not in ksh
- From: Andreas Kusalananda Kähäri
- Re: GnuPG 2.1 with Git, problem in zsh, not in ksh
- Re: GnuPG 2.1 with Git, problem in zsh, not in ksh
- From: Andreas Kusalananda Kähäri
Messages sorted by:
Reverse Date,
Date,
Thread,
Author