From 91fcc30acea4a45bf749338a5f614f3848290cf5 Mon Sep 17 00:00:00 2001 From: Jeff Brown Date: Tue, 20 May 2014 13:20:31 -0700 Subject: Fix problems completing filenames with spaces. Set the IFS variable to prevent the shell from breaking the array generated by compgen at space boundaries. This was done in other completion functions but oddly missed in the filename completion function. Change-Id: I23245fc344b2b9d21aa664ebcfdb2c8ddb9da650 --- 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 d4d7b4e..3c5ea00 100644 --- a/bash_completion/adb.bash +++ b/bash_completion/adb.bash @@ -341,7 +341,7 @@ _adb_util_list_files() { _adb_util_complete_local_file() { - local file xspec i j + local file xspec i j IFS=$'\n' local -a dirs files file=$1 -- cgit v1.1