diff options
| author | Jeff Brown <jeffbrown@google.com> | 2014-05-20 13:20:31 -0700 |
|---|---|---|
| committer | Siva Velusamy <vsiva@google.com> | 2014-05-21 16:22:46 +0000 |
| commit | 91fcc30acea4a45bf749338a5f614f3848290cf5 (patch) | |
| tree | 7f272206f7b34072bcfcaace9eff9c89116a5c33 | |
| parent | 66ff42468f7dc836f73cc9507bdf8d6f21e17d7f (diff) | |
| download | sdk-91fcc30acea4a45bf749338a5f614f3848290cf5.zip sdk-91fcc30acea4a45bf749338a5f614f3848290cf5.tar.gz sdk-91fcc30acea4a45bf749338a5f614f3848290cf5.tar.bz2 | |
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
| -rw-r--r-- | bash_completion/adb.bash | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
