commit | de7cad80489bc06a2c7f4ffff2f056d9617b00e0 | [log] [tgz] |
---|---|---|
author | Jeff Sharkey <jsharkey@android.com> | Tue Aug 05 16:53:08 2014 -0700 |
committer | Jeff Sharkey <jsharkey@android.com> | Tue Aug 05 16:53:25 2014 -0700 |
tree | 2a961ddb3cfbc06b944406803edd260e066ee898 | |
parent | 5e184b63edbd204b0a0cda32afae89efdabf9529 [diff] |
Escape single quotes in arguments. Verified that these use-cases continue working: $ adb shell arg a a 'b b' $ adb shell arg a a "b b" |arg|a|a|b b| $ adb shell arg "a a 'b b'" |arg|a a 'b b'| $ adb shell arg 'a a "b b"' |arg|a a "b b"| $ adb shell arg a\"b\'c |arg|a"b'c| $ adb shell "arg a && arg b" |arg|a| |arg|b| $ adb shell "arg 'a' \"b\" c" |arg|a|b|c| Bug: 16139781 Change-Id: I3b010b6cdf57281695c11fda318c9bea0a7221cc