Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH 1/2] Run ssh in batch mode
- X-seq: zsh-workers 25882
- From: JÃrg Sommer <joerg@xxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: [PATCH 1/2] Run ssh in batch mode
- Date: Mon, 13 Oct 2008 19:19:33 +0200
- Cc: JÃrg Sommer <joerg@xxxxxxxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=simple/simple; d=gnuu.de; s=banki; t=1223935448; i=@xxxxxxxxxxxx; bh=YXB1eP3xKIcdIgIiGzuPSGYOyMQmV5T18 HPq1BRUvYw=; h=From:To:Cc:Subject:Date:Message-Id; b=mCo3o9rmyufhmr yEPogyucVyo1bOw2IfldB29kllFmpCd4UL/AIMV/bKFeSjEdOu0daI7+lI+V8GgnVzp pF4ZnJ19N9k8KyegNkNbgLJAi94GyNM5uIWy/0Z+9mSnCS7Nx0zfaEx49As1Ad4bCgM bS/rlj+P7Agqi3tJyWwlYCQ=
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author