Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

1
  • I don't think there's a getopt from GNU, the one most often seen on Linuxen is from the util-linux package. But note that many "traditional" implementations of getopt don't support even whitespace in arguments (that includes the one on macOS). The util-linux implementation has the -T option to test for the "enhanced" features exactly because of that. Busybox also has an implementation of getopt that supports whitespace and long options. Commented Jan 3 at 13:44