Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: scp completion - garbled output



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