[procps] getopt for top

  • From: Jim Warner <james.warner@xxxxxxxxxxx>
  • To: Procps-ng Mail list <procps@xxxxxxxxxxxxx>
  • Date: Mon, 6 Sep 2021 02:38:22 -0500

Hi Craig,

I decided to normalize top's 'help' and 'version' handling which then involved adding long-form option support.

I also addressed the quirks associated with a getopt 'optional' argument and the inconsistent approach to the equals sign. To quote from the man page:

     The equals sign can be used with either option form
     and whitespace before and/or after the `=' is permitted.

Attached are the resulting patches for our two branches.

Thanks in advance for the pushes.



p.s. any idea when newlib might be born?

Attachment: master-for-4.tgz
Description: application/compressed-tar

Attachment: newlib-for-4.tgz
Description: application/compressed-tar

Other related posts: