bash / sh

1、

网址:“http://stackoverflow.com/questions/8094562/how-to-run-bash-script-in-my-android”

 

in Android the shell is located in /system/bin/sh not /bin/sh like it is on most Unix-like systems. So even if you change #!/bin/bash to #!/bin/sh it will still not work. you'll have to use #!/system/bin/sh

Android is not a GNU/Linux distribution so you can't expect that all scripts that run on GNU/Linux to also work on Android.

 

 

C

 

posted @ 2015-11-13 10:16  codeskill_android  阅读(131)  评论(0编辑  收藏  举报