Some ps(1) implementations trim lines to 80 columns, even if the output is being piped. Let's force ps(1) to output full lines with `ww`, which is not in POSIX, but seems to be portable enough. On 2023-06-08 13:19, Andrew Clayton wrote: > Just for posterity... > > BusyBox ps(1) knows about a grand total of 2 options! > > BusyBox v1.35.0 (2022-11-19 10:13:10 UTC) multi-call binary. > > Usage: ps [-o COL1,COL2=HEADER] [-T] > > Show list of processes > > -o COL1,COL2=HEADER Select columns for display > -T Show threads > > But at least it doesn't make it worse. In fact all of these three do > exactly the same thing > > ps > ps ax > ps axww > > I.e it ignores any non option argument... > > It does however help on OpenIndiana... Link: <https://github.com/nginx/unit/issues/875> Link: <https://github.com/nginx/unit/issues/886> Link: <https://github.com/nginx/unit/pull/885> Cc: <https://github.com/mattxtaz> Cc: Liam Crilly <liam@nginx.com> Reviewed-by: Andrew Clayton <a.clayton@nginx.com> Signed-off-by: Alejandro Colomar <alx@nginx.com>
35 KiB
Executable File
35 KiB
Executable File