Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: scp completion - garbled output
- X-seq: zsh-workers 16533
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxx>
- To: Borsenkow Andrej <Andrej.Borsenkow@xxxxxxxxxxxxxx>, "'Zsh hackers list'" <zsh-workers@xxxxxxxxxx>
- Subject: Re: scp completion - garbled output
- Date: Thu, 31 Jan 2002 15:26:54 +0000
- In-reply-to: <001201c1aa56$cec8cca0$21c9ca95@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <001201c1aa56$cec8cca0$21c9ca95@xxxxxxxxxxxxxx>
On Jan 31, 3:57pm, Borsenkow Andrej wrote:
} Subject: scp completion - garbled output
}
} bor@cooker% scp -p itsrm2:tmp/bufzsh: no matches found: tmp/buf*
} zsh: no matches found: tmp/buf*
} zsh: no matches found: tmp/buf*
This is coming from _remote_files where it does (in a _wanted call):
$(ssh -a -x ${words[CURRENT]%:*} echo ${words[CURRENT]#*:}\*)
The message appears repeatedly because this gets tried once by each
function in your completer style.
The right thing appears to be to put 2>/dev/null inside the $(...).
But there will still be a problem if you have to type a password to get
ssh access to the remote host. It'd be nice if `zle redisplay' or the
equivalent would work from inside a completion widget.
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net
Messages sorted by:
Reverse Date,
Date,
Thread,
Author