Question

I have an extremely long command line given to ar (android ar exactly) by bjam, and ar just corrupts a file path and complains that file does not exist.

Is there a way to make ar allocate a bigger command line buffer ?

Was it helpful?

Solution

Not sure about the Android version but many ar implementations (and indeed many other commands) allow you to put all your arguments into a file (say xyz.opt) and then use something like ar @xyz.opt to do the grunt work.

That works because the limitation tends to be not so much on the program itself but often on the shell constructing the argument list. By placing the arguments into a file, you can effectively get around that limitation.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top