Post #2383502
2026-04-30 20:51 UTC
@cks@mastodon.social AGREED
ksh93's getopts is _so_ much richer than bash's, it breaks my heart.
I have a filthy workaround: cf. https://git.sr.ht/~gnomon/bash-script-skeleton , lines 57-74
Replies (1)
-
@cks@mastodon.social 2026-04-30 20:55
@gnomon@mastodon.social My first reaction was "my gods, that works?" (Well, for long options. For short options you have other issues. But now I'm wondering about nested getopts and other terrible hacks.)