Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
"show" completion et al spammy when binaries don't exist
- X-seq: zsh-workers 24385
- From: "Mikael Magnusson" <mikachu@xxxxxxxxx>
- To: zsh-workers <zsh-workers@xxxxxxxxxx>
- Subject: "show" completion et al spammy when binaries don't exist
- Date: Sat, 12 Jan 2008 21:57:35 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; bh=zjnOFUSYzXAKMDZKQxZG2CZTUQyJs1GRjYauBpuw83Q=; b=fjKb2xcth5nvfoU85WAcjABIXECCCLJKn1Fn3ohTasULZfxKHguWHGrdLzUCtov/cYCdGKq/fFsJ+K/TfPXk6hzToN/Oq1JSjWjYR03gvkTHrLtMuM4we+d4CoFNRSdoS6EjMMipPXUq8Iascb12ZpWy3mUL2Jx2Qdf7CjmG5m0=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=PA/f5iZrIxUldoi4XwJYf99W2UnS2dFUKljGOqKDAPO2vlJi05Ak1Bb1lwGXoiAHYWxCsn1msT4+U84rgYpArV++pFpDTwGGYMNOCaxHCqMDIxR17D+Vv/WFNI522+oAXhkuC7LwAm6bZsgxVAZSJ4M5bM41wm067DqD0ZVmbic=
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
I was looking at another window while writing and typed
show show gi<tab>
instead of git show gi<tab> and got the following:
% show show gi_mh:1: command not found: mhpath
_mh:1: command not found: mhparam
_mh:1: command not found: mhpath
_mh:1: command not found: mhparam
_mh:1: command not found: mhpath
_mh:1: command not found: mhparam
_mh:1: command not found: mhpath
_mh:1: command not found: mhparam
show show gi<cursor here>
---- no match for: `sequence' or `corrections'
After the error messages the prompt wasn't redrawn correctly, but I
think that is expected. In _mh all commands are called with 2>
/dev/null, but that doesn't help much since zsh is the one to print
the messages. Which leads me to ask, is the stderr output of
completion scripts ever wanted in the terminal? Maybe it should be
redirected more centrally? Putting
which mhpath >& /dev/null || return
on the first line of _mh fixes the problem, I don't know if some other
method would be preferred. It seems _git also suffers from this
problem. Typing apt-get install <tab> repeatedly inserts a space. Are
these sort of things to be considered as problems, or am I stupid to
press tab after a command I don't have?
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author