Merge pull request #340 from zsh-users/issue-338

escape semicolon in _adb devices list. Fixes #338
This commit is contained in:
Vadim A. Misbakh-Soloviov 2015-08-09 00:04:56 +05:00
commit 4894cf8c5f
1 changed files with 1 additions and 1 deletions

View File

@ -253,7 +253,7 @@ _adb_product_names() {
(( $+functions[_adb_serial_numbers] )) ||
_adb_serial_numbers() {
local serial_numbers; serial_numbers=(${${(M)${(f)"$(_call_program devices $service devices)"}:#*device}%%[[:space:]]*}":connected device")
local serial_numbers; serial_numbers=(${${(M)${(f)"$(_call_program devices $service devices)"/:/\\:}:#*device}%%[[:space:]]*}":connected device")
[[ -n "$ANDROID_SERIAL" ]] && serial_numbers+=("$ANDROID_SERIAL:default value set in ANDROID_SERIAL environment variable")
_describe -t serial-numbers 'serial number' serial_numbers "$@" && ret=0
}