Friday, April 30, 2021

Re: fetch_cmd.template: use getopts

Marc Espie:

> > It's a POSIX shell built-in, so no separate man page. It's documented
> > in sh(1) and ksh(1).
>
> It's fairly recent as a built-in apparently, it wasn't in OpenGroups 2017
> or so.

Not true. It's in their online copy of the 2008 edition.
I don't know where to find older versions.

However, bash has tracked POSIX closely and config.h from bash 1.11 (!)
already says

/* Define GETOPTS_BUILTIN if you want the Posix.2 `getopts' shell builtin
compiled into the shell. */

That's from 1991.

--
Christian "naddy" Weisgerber naddy@mips.inka.de

No comments:

Post a Comment