help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Handling getopt for option without optional argument value


From: Greg Wooledge
Subject: Re: Handling getopt for option without optional argument value
Date: Fri, 23 Jul 2021 13:48:53 -0400

On Fri, Jul 23, 2021 at 07:43:41PM +0200, lisa-asket@perso.be wrote:
> Look, this all started because people started giving me shit for using getopt.

Because it's broken.

> All because getopts in supposed to be a replacement getopt,

It's not.  They work differently.  They are used differently.

Look, if you are dead set on writing scripts that *only* work on Linux,
then go ahead and use the Linux version of getopt.  It will do the
job that you want it to do.  Make sure you change your script to call
it correctly (it's not the same as the Unix getopt, and it's definitely
not the same as getopts).

Just stop posting here about it, because *we* will not support your use
of it.  We prefer scripts that at least pretend to be portable.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]