Stop buffering of adb shell output

Viewed 1668

I observed this new behavior in adb v1.0.39. The command:

adb shell getevent -l

gives the output below:

Observe that the last line is not complete

Observe that the last line is incomplete. This happens on many different devices. The same command is working without buffering in adb v1.0.32.

How do I stop adb shell output buffering in adb v1.0.39?

2 Answers

I don't see this behavior using adb 1.0.41.

Only while using tr which I use to delete "\r". In this case I use:

adb command ... | stdbuf -o0 tr -d $'\r'
Related