How do I pass an absolute path to the adb command via git bash for windows? -
i'm trying pass unix style path android adb command using git bash (msysgit) shell interpreting path incorrectly. i've tried far:
$ adb push myfile /mnt/sdcard/ failed copy 'myfile' 'c:/program files (x86)/git/mnt/sdcard/': no such file or directory $ adb push myfile "/mnt/sdcard/" failed copy 'myfile' 'c:/program files (x86)/git/mnt/sdcard/': no such file or directory $ adb push myfile '/mnt/sdcard/' failed copy 'myfile' 'c:/program files (x86)/git/mnt/sdcard/': no such file or directory
what correct way this?
according this answer, msys shell mangling file name according these rules. according mangling rules, following should work you:
adb push myfile '//mnt\sdcard\'
(replace first slash 2 slashes , remaining slashes backslash)
Comments
Post a Comment