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

Re: sftp with internal completion anybody?



On Sep 22,  8:32am, Matthias Kopfermann wrote:
} Subject: Re: sftp with internal completion anybody?
}
} On Thu, Sep 22, 2005 at 06:50:16AM +0400, Andrey Borzenkov:
} > 
} > I wonder if it is possible to handle password request?
} 
} I came to ask that myself.

Under the doc for the "read" builtin in 4.2.x and later:

    -s
          Don't echo back characters if reading from the terminal.
          Currently does not work with the -q option.

So, it should be possible to recognize a "[Pp]assword:" prompt and
call "read -s", perhaps even "read -se | zpty -w" so you don't
need to store the password in a variable even temporarily.



Messages sorted by: Reverse Date, Date, Thread, Author