the different between getopt and getopts

Jean-Christophe PLAGNIOL-VILLARD plagnioj at jcrosoft.com
Mon Feb 4 08:04:04 EST 2013


On 12:58 Mon 04 Feb     , Alexander Aring wrote:
> 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".
no this will break down comptibility

Best Regards,
J.
> 
> Regards Alex
> 
> _______________________________________________
> barebox mailing list
> barebox at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox



More information about the barebox mailing list