From 520922c22769ca4b55f27680c8e0c25bf610f783 Mon Sep 17 00:00:00 2001 From: "Vadim A. Misbakh-Soloviov" Date: Sun, 9 Aug 2015 00:04:34 +0500 Subject: [PATCH] escape semicolon in _adb devices list. Fixes #338 --- src/_adb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/_adb b/src/_adb index c9de768..9d19935 100644 --- a/src/_adb +++ b/src/_adb @@ -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 }