diff options
| author | David Pursell <dpursell@google.com> | 2015-10-20 14:19:36 -0700 | 
|---|---|---|
| committer | David Pursell <dpursell@google.com> | 2015-10-26 10:10:03 -0700 | 
| commit | 08a27094d94bec29a4dfa1fd9acfedebc80e4600 (patch) | |
| tree | 43eb9ec3aa31f621f8549f8025f2807f780fe205 /base/errors_unix.cpp | |
| parent | b42e7e8f05d4ad3aa0fc3cfcc997684a4446c7b4 (diff) | |
adb: fix -Tt options to match ssh.
ssh has slightly more sophisticated -Tt options that we want to match.
This CL changes -Tt behavior to match ssh so that we allocate a remote
PTY in these cases:
     -T: never.
       : if stdin is a terminal and user wants an interactive shell.
     -t: if stdin is a terminal (otherwise print a warning message).
  -t -t: always.
Now this will work as expected:
  $ adb shell < my_script.sh
Also corrects a small unrelated bug with escape sequences so that only
a single tilde is accepted for the disconnect sequence.
Bug: http://b/24565284
Change-Id: Idab57ac98d81233b45c2613fe64ceb4398add961
Diffstat (limited to 'base/errors_unix.cpp')
0 files changed, 0 insertions, 0 deletions
