From 7d56e24dd9ebe85d255afbb21c1da4f82b51cc3e Mon Sep 17 00:00:00 2001 From: JP Abgrall Date: Mon, 7 May 2012 14:14:48 -0700 Subject: adb bash completion: fix completion of "adb -s" It would incorrectly quote '2>' which would end up passed to the command. Change-Id: I77ac112363efea4322910784355f3274dad44bab --- bash_completion/adb.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bash_completion') 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) -- cgit v1.2.3