On 24/05/2022 23.20, Dan Cross wrote:
On Thu, May 19, 2022 at 5:53 AM Thomas Huth <thuth@xxxxxxxxxx> wrote:
On 13/05/2022 16.34, Sean Christopherson wrote:
[snip]
According to https://illumos.org/man/1/getopt :
NOTES
getopt will not be supported in the next major release.
...
So even if we apply this fix now, this will likely break soon again. Is
there another solution to this problem?
I wouldn't put too much stock into that; that note came from Solaris
and has been in the man page for 30 years or more [*].
:-)
I think there
are too many shell scripts in the wild using `getopt` for it to ever be
removed. Indeed, if anything this highlights something to clean up
on the illumos side by removing that from the man page.
Yup, cleaning up that man page sounds like a good idea then, indeed.
Thomas