mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-01 09:41:44 +02:00
42336: force single column output when getting filenames with adb ls command
This commit is contained in:
parent
ffacc95766
commit
0c324124d0
2 changed files with 4 additions and 1 deletions
|
@ -1,5 +1,8 @@
|
|||
2018-02-07 Oliver Kiddle <okiddle@yahoo.co.uk>
|
||||
|
||||
* wgh@torlan.ru: 42336: Completion/Unix/Command/_adb: force
|
||||
single column output when getting filenames with adb ls command
|
||||
|
||||
* 42343: Completion/Unix/Command/_subversion: complete
|
||||
--config-option more than once
|
||||
|
||||
|
|
|
@ -480,7 +480,7 @@ _adb_remote_folder () {
|
|||
pref=${pref%/*}/
|
||||
fi
|
||||
# yes, this ls is sickening to look at, but android doesn't have printf or find
|
||||
files=(${${(f)"$(adb ${=ADB_DEVICE_SPECIFICATION} shell 'ls -d 2> /dev/null '$pref'*/ '$pref'*')"}%$'\r'})
|
||||
files=(${${(f)"$(adb ${=ADB_DEVICE_SPECIFICATION} shell 'ls -1d 2> /dev/null '$pref'*/ '$pref'*')"}%$'\r'})
|
||||
dirs=(${${(M)files:#*/}%/})
|
||||
files=(${${files:|dirs}:#*\*(/|)})
|
||||
_adb_device_available && \
|
||||
|
|
Loading…
Reference in a new issue