Skip to content

[bug] command "top -v" worked with 3.3.15 but is broken on 4.0.2 (changed behavior?)

sorry, but i can not find the commit which changed it.

computer1/oracle-linux8:

[root@box]# top -v
  procps-ng 3.3.15
Usage:
  top -hv | -bcEHiOSs1 -d secs -n max -u|U user -p pid(s) -o field -w [cols]

[root@box]# echo $?
0

and computer2/debian:

bastian@ryzen:~/software/procps$ LC_ALL=C top -v
top: invalid option -- 'v'

bastian@ryzen:~/software/procps$ echo $?
0

bastian@ryzen:~/software/procps$ LC_ALL=C top -V
top from procps-ng 4.0.2

Also: returning 0 when submitting a bad option seems wrong.