Post #2383501
2026-04-30 19:53 UTC
@gnomon@mastodon.social I keep wishing Bash had added a "getopts_long" builtin so my shell scripts could support long options. It feels so wrong that none of my shell scripts have them.
(AFAIK you really need to do this with a builtin, not an external program, or you wind up in quoting hell.)
Replies (1)
-
@gnomon@mastodon.social 2026-04-30 20:51
@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