zsh-workers
 help / color / mirror / code / Atom feed
* [PATCH 1/2] Run ssh in batch mode
@ 2008-10-13 17:19 Jörg Sommer
  2008-10-13 17:19 ` [PATCH 2/2] Use _multi_parts for scp remote file completion and complete abbrevs Jörg Sommer
  0 siblings, 1 reply; 3+ messages in thread
From: Jörg Sommer @ 2008-10-13 17:19 UTC (permalink / raw)
  To: zsh-workers; +Cc: Jörg Sommer

To prevent ssh asks for the password or prompts for acknowledging the
fingerprint and messing up with standard input, start it with
-oBatchMode=yes.
---
 Completion/Unix/Command/_ssh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/Completion/Unix/Command/_ssh b/Completion/Unix/Command/_ssh
index c52b38c..293732c 100644
--- a/Completion/Unix/Command/_ssh
+++ b/Completion/Unix/Command/_ssh
@@ -10,7 +10,7 @@ _remote_files () {
     then rempat="${PREFIX%%[^./][^/]#}\*"
     else rempat="${(q)PREFIX%%[^./][^/]#}\*"
     fi
-    remfiles=(${(M)${(f)"$(_call_program files ssh $args -a -x ${IPREFIX%:} ls -d1FL "$rempat" 2>/dev/null)"}%%[^/]#(|/)})
+    remfiles=(${(M)${(f)"$(_call_program files ssh -o BatchMode=yes $args -a -x ${IPREFIX%:} ls -d1FL "$rempat" 2>/dev/null)"}%%[^/]#(|/)})
     compset -P '*/'
     compset -S '/*' || suf='remote file'
 
-- 
1.6.0.2


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-10-14  4:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-13 17:19 [PATCH 1/2] Run ssh in batch mode Jörg Sommer
2008-10-13 17:19 ` [PATCH 2/2] Use _multi_parts for scp remote file completion and complete abbrevs Jörg Sommer
2008-10-14  4:26   ` Bart Schaefer

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).