diff options
| author | Jorge Ruesga <jorge@ruesga.com> | 2012-11-24 21:58:21 +0100 |
|---|---|---|
| committer | Jorge Ruesga <jorge@ruesga.com> | 2012-11-24 21:58:21 +0100 |
| commit | ea95876fbfa57f1a71b39b23ac99db8c9b258cb7 (patch) | |
| tree | b097ad5e16c15a6532f3b311ee8aeee8a4c979e5 | |
| parent | e39313f63a41922babe8acefe7b691c20d9fccda (diff) | |
| download | android_packages_apps_CMFileManager-ea95876fbfa57f1a71b39b23ac99db8c9b258cb7.tar.gz android_packages_apps_CMFileManager-ea95876fbfa57f1a71b39b23ac99db8c9b258cb7.tar.bz2 android_packages_apps_CMFileManager-ea95876fbfa57f1a71b39b23ac99db8c9b258cb7.zip | |
CMFileManager: Fix quickfoldersearch command for files with whitespaces
This change fixed the quickfoldersearch command used by InlineAutocompleteTextView
widget, when retrieve items with some whitespace in its name.
Replace awk by cut command, and redirect stderr output of ls to /dev/null.
Change-Id: Id039e573dc5e6ae5755b3251f014f34cd104f426
| -rw-r--r-- | res/xml/command_list.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/res/xml/command_list.xml b/res/xml/command_list.xml index 26cd51eb..caa288ac 100644 --- a/res/xml/command_list.xml +++ b/res/xml/command_list.xml @@ -55,7 +55,7 @@ <command commandId="ls" commandPath="cd" commandArgs="%1$s && /system/bin/ls -al %1$s | { /system/xbin/grep -v -e '^l' || true; } && /system/xbin/echo '>SIMLINKS>' && /system/bin/ls -al %1$s | { /system/xbin/grep -e '^l' || true; } && /system/xbin/echo '>SIMLINKS_DATA>' && /system/bin/ls -aF %1$s | /system/xbin/grep -e '^l' | /system/xbin/cut -d ' ' -f2- && /system/bin/ls -aF %1$s | /system/xbin/grep -e '^l' | /system/xbin/cut -d ' ' -f2- | /system/xbin/awk '{print "\\""$0"\\""}' | /system/xbin/xargs -r -n1 /system/xbin/readlink -f && /system/bin/ls -F %1$s | /system/xbin/grep -e '^l' | /system/xbin/cut -d ' ' -f2- | /system/xbin/awk '{print "\\""$0"\\""}' | /system/xbin/xargs -r -n1 /system/xbin/readlink -f | /system/xbin/awk '{print "\\""$0"\\""}' | { /system/xbin/xargs -r /system/bin/ls -ald || /system/xbin/echo; }" /> <command commandId="fileinfo" commandPath="/system/bin/ls" commandArgs="-ald %1$s" /> <command commandId="find" commandPath="/system/xbin/find" commandArgs="%1$s \\( -name %2$s -o -name %3$s -o -name %4$s -o -name %5$s -o -name %6$s \\) -exec /system/xbin/echo {} \\; -exec /system/bin/ls -ald {} \\;" /> - <command commandId="quickfoldersearch" commandPath="/system/bin/ls" commandArgs="-aFd %1$s.* %1$s* | /system/xbin/grep -e '^d' -e '^ld' | /system/xbin/awk '{print $2}'" /> + <command commandId="quickfoldersearch" commandPath="/system/bin/ls" commandArgs="-aFd %1$s.* %1$s* 2> /dev/null | /system/xbin/grep -e '^d' -e '^ld' | /system/xbin/cut -d" " -f2-" /> <command commandId="readlink" commandPath="cd" commandArgs="%2$s && /system/xbin/readlink -f %1$s | /system/xbin/awk -F// '{print "\\""$1"\\""}' | /system/xbin/xargs -n1 /system/xbin/dirname && /system/xbin/readlink -f %1$s | /system/xbin/awk -F// '{print "\\""$1"\\""}' | /system/xbin/xargs -n1 /system/bin/ls -ald" /> <!-- Operational --> |
