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. - Dan C. [*] e.g. https://www.freebsd.org/cgi/man.cgi?query=getopt&apropos=0&sektion=0&manpath=SunOS+5.5.1&arch=default&format=html from 1992!