• 0 Posts
  • 4 Comments
Joined 9 months ago
cake
Cake day: October 23rd, 2024

help-circle
  • The article mentions “GNU getopt” but as far as I know GNU doesn’t have a getopt utility; the version on most Linux OSes comes from util-linux. (Perhaps the author is confusing it with the C function with the same name.)

    Note that other getopt implementations have different features and some are simply broken. For example, BSD getopt doesn’t support long options and comes with this known bug:

    Arguments containing whitespace or embedded shell metacharacters generally will not survive intact; this looks easy to fix but isn’t.

    For cross-platform scripts it’s probably best to use the getopts shell builtin instead, the downside being it only supports fairly basic (POSIX) syntax even on Bash.



  • They’re switching their main repository from Mercurial to Git. Mozilla started using Mercurial before Git became de facto standard, but I imagine these days learning Mercurial is seen as an unnecessary obstacle for new contributors, hence the current switch.

    As for why GitHub specifically, it’s because that’s where the rest of Mozilla’s projects already are. They have been using GitHub for a long time (14 years or more), with thousands of repositories there. It’s why Rust and Servo are on GitHub, for example.

    Edit: See https://glandium.org/blog/?p=4346 for more thorough/accurate info.