My embedded device uses busybox and it only has getopt. I wanted to port getopts to my embedded device and was looking for getopts source to do that. Where can I find getopts source?
Asked
Active
Viewed 670 times
1 Answers
1
You should find it in bash source. You can download bash
from Here
You will find getopts.def
inside builtins/
dir.
mkbuiltins -D . getopts.def
will create getopts.c.
You will have to do configure
and make
which will create mkbuiltins
inside builtins/
directory.

dpp
- 1,748
- 11
- 7
-
I am looking at bash source. But all it has it getopts.def – Ankur Agarwal May 01 '12 at 19:02
-
I'll upvote you answer if you move the instructive comments into the main body of your answer and delete the comment ;-). Good luck to all. – shellter May 01 '12 at 22:09