The documentation suggests that this feature isn’t supposed to work, and that belief is shared, so its loss in version 4.0.3 didn’t cause much reaction (the behaviour change was due to an obscure, and I think incomplete, fix for %cpu
handling). However it seems that “AIX free-format” really is supposed to work, and it’s been restored recently; unfortunately the fix is only available in version 4.0.5 of procps, which isn’t available in Debian at all yet, let alone in Debian 13.
I’m not aware of a workaround in your situation, using the version of ps
currently in Debian 13; you could build a newer version of ps
, and perhaps file an issue in Debian (reportbug procps
) pointing to the upstream fix. This is unlikely to qualify for a stable fix though; I think the best you can hope for in Debian itself is for a backport of 4.0.5 once it lands in testing.
You can of course keep the Debian 10, or better, 11, version of ps
somewhere and use that; if you don’t have it handy, you can download it and extract it (on amd64
) as follows:
$ wget http://deb.debian.org/debian/pool/main/p/procps/libprocps8_3.3.17-5_amd64.deb http://deb.debian.org/debian/pool/main/p/procps/procps_3.3.17-5_amd64.deb
$ sudo apt install ./libprocps8_3.3.17-5_amd64.deb
$ dpkg-deb -x procps_3.3.17-5_amd64.deb myps
Copy myps/bin/ps
somewhere else on your PATH
, renaming it to myps
, and then you’ll be able to run
$ myps -axo "%p ;;; %a"
and get the result you expect. Vulnerabilities are occasionally found in ps
, so it’s probably not a great idea to rely on a very old version for general usage.
ps -V
to your question. I can't reproduce this onps from procps-ng 4.0.5-dirty
.