adbfs-rootless icon indicating copy to clipboard operation
adbfs-rootless copied to clipboard

Error for files with backticks in name: unexpected EOF while looking for matching ``

Open dima74 opened this issue 6 years ago • 0 comments

If I have a file which name contains backtick (`), then I can't open this file. For example I have file /storage/0403-0201/E`kzamen, then adbfs will print the following error:

--*-- exec_command: adb shell "ls -l -a -d '/storage/0403-0201/E`kzamen'" 2>&1
sh: -c: line 0: unexpected EOF while looking for matching ``'
sh: -c: line 1: syntax error: unexpected end of file

The solution would be to escape backtick, so the command becomes adb shell "ls -l -a -d '/storage/0403-0201/E\`kzamen'"

dima74 avatar Jul 14 '19 13:07 dima74