[Bug 257650] top - -P option behaves as if none given when it is specified even number of times: leakage of implementation details
Date: Fri, 06 Aug 2021 07:09:40 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257650 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 options that statement would apply to. -- You are receiving this mail because: You are the assignee for the bug.