the different between getopt and getopts

Alexander Aring alex.aring at gmail.com
Mon Feb 4 06:58:58 EST 2013


Hi,

barebox has a builtin "getopt" hush implementation. But this "getopt"
implementation used a syntax which is more like "getopts".

"getopt" and "getopts" do the same thing in different syntax. See:

http://aplawrence.com/Unix/getopts.html

In my opinion we should rename "getopt" to "getopts". I can make a patch for
this, but I don't know if there is a special reason why in barebox
"getopts" is "getopt".

Regards Alex



More information about the barebox mailing list