Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 06 Aug 2021 07:09:40 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 257650] top - -P option behaves as if none given when it is specified even number of times: leakage of implementation details
Message-ID:  <bug-257650-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D257650

            Bug ID: 257650
           Summary: top - -P option behaves as if none given when it is
                    specified even number of times: leakage of
                    implementation details
           Product: Base System
           Version: 13.0-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: parv.0zero9+freebsd@gmail.com

I personally find in ...

  top -P -P

... -P option canceling itself out rather surprising because this option is=
 not
listed in the manual page, on FreeBSD 13-STABLE, as a toggle. Frankly any
option implemented as a toggle ought to be mentioned as such to avoid any
surprises.

"CosmicDJ" on #freebsd channel on LibreChat IRC found the implementation
details ...

  https://cgit.freebsd.org/src/tree/usr.bin/top/top.c#n455


There could to be a single statement (in a manual page) that an even number=
 of
same option will behave as if that option was not given, along with the opt=
ions
that statement would apply to.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-257650-227>