summaryrefslogtreecommitdiff
path: root/base/errors_unix.cpp
diff options
context:
space:
mode:
authorJosh Gao <jmgao@google.com>2015-11-20 15:37:31 -0800
committerJosh Gao <jmgao@google.com>2015-12-10 12:52:06 -0800
commit7d586073609723cb2f6ed37de0ad1a7996e621ae (patch)
tree14da56916026fd79f73f3c2f638bf4142668f44a /base/errors_unix.cpp
parent79cfba55e9d1ff72930f2c10dd5805864baf4276 (diff)
adb: shell: add -n flag to not read from stdin.
Shell scripts of the following form do not work properly with adb: echo "foo\nbar\nbaz" | { read FOO while [ "$FOO" != "" ]; do adb shell echo $FOO read FOO done } The first run of adb shell will consume all of the contents of stdin, causing the loop to immediately end. ssh solves this by providing a -n flag that causes it to not read from stdin. This commit adds the same. Bug: http://b/25817224 Change-Id: Id74ca62ef520bcf03678b50f4bf203916fd81038
Diffstat (limited to 'base/errors_unix.cpp')
0 files changed, 0 insertions, 0 deletions