问题描述
喜
我想知道我怎么编译整个bash shell中进入我的app.I读的地方,为了这个,我编译它的子程序。怎么样?
HiI want to know how i compile the entire bash shell into my app.I read somewhere that for this i compile its Subroutine. how?
在此先感谢
推荐答案
为什么需要一个嵌入式的bash?
Why do you need an embedded bash?
如果没有更多的细节,我会说,是在应用程序中的脚本更合适的方法。
Without more details, I would say that Lua is a more appropriate approach for scripting in an application.
编辑:
这是你的目标设备是iPhone上的其他问题假设,你可能有兴趣在阅读这个问题:的。总之,你不能使用系统()
在iPhone上。
Assuming from your other questions that your target device is an iPhone, you may be interested in reading this question: iPhone - is it possible to make system call. In short, you cannot use system()
on iPhone.
挖掘与谷歌的主题后,我发现,不仅系统()
是不可用的,而且执行exec()
和 NSTask
类。我怀疑的popen()
不可用也。
After digging the subject with Google, I found that not only system()
is unavailable but also exec()
and NSTask
class. I suspect that popen()
is unavailable as well.
这篇关于编译整个的bash shell到我的应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!