aboutsummaryrefslogtreecommitdiffstats
path: root/bash_completion
diff options
context:
space:
mode:
authorJP Abgrall <jpa@google.com>2012-05-07 14:14:48 -0700
committerJP Abgrall <jpa@google.com>2012-05-07 19:40:42 -0700
commit7d56e24dd9ebe85d255afbb21c1da4f82b51cc3e (patch)
treea3122e414d9a8a4d0b022a59599136b8c3175b55 /bash_completion
parent7948189830a1437524a3596c82e3a5dc24e1e75b (diff)
downloadsdk-7d56e24dd9ebe85d255afbb21c1da4f82b51cc3e.tar.gz
sdk-7d56e24dd9ebe85d255afbb21c1da4f82b51cc3e.tar.bz2
sdk-7d56e24dd9ebe85d255afbb21c1da4f82b51cc3e.zip
adb bash completion: fix completion of "adb -s"
It would incorrectly quote '2>' which would end up passed to the command. Change-Id: I77ac112363efea4322910784355f3274dad44bab
Diffstat (limited to 'bash_completion')
-rw-r--r--bash_completion/adb.bash2
1 files changed, 1 insertions, 1 deletions
diff --git a/bash_completion/adb.bash b/bash_completion/adb.bash
index 12b36ef56..46ed20847 100644
--- a/bash_completion/adb.bash
+++ b/bash_completion/adb.bash
@@ -66,7 +66,7 @@ _adb() {
COMPREPLY=( $(compgen -W "$OPTIONS $COMMAND" -- "$cur") )
;;
OPT_SERIAL_ARG)
- local devices=$(command adb devices '2>' /dev/null | grep -v "List of devices" | awk '{ print $1 }')
+ local devices=$(command adb devices 2> /dev/null | grep -v "List of devices" | awk '{ print $1 }')
COMPREPLY=( $(compgen -W "${devices}" -- ${cur}) )
;;
COMMAND)