Subject: bin/10875: bug in ps field width formatting
To: None <gnats-bugs@gnats.netbsd.org>
From: None <abs@mono.org>
List: netbsd-bugs
Date: 08/22/2000 03:31:17
>Number: 10875
>Category: bin
>Synopsis: bug in ps field width formatting
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Aug 22 03:32:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator: David Brownlee
>Release: 1.5_ALPHA 30-07-2000
>Organization:
>Environment:
System: NetBSD wopr.int.purplei.com 1.5_ALPHA NetBSD 1.5_ALPHA (_WOPR_) #0: Wed Jul 26 22:44:14 BST 2000 abs@wopr.int.purplei.com:/files/transient/netbsd/src/sys/arch/i386/compile/_WOPR_ i386
>Description:
Under 1.5ALPHA, running 'ps -o pid,command' does not truncate the
command, but 'ps -o command,pid' does:
% ps -o command,pid
COMMAND PID
-bin/tc 2246
ps -o c 20973
Under earlier versions it gives:
% ps -o command,pid
COMMAND PID
-tcsh (tcsh) 13060
ps -o command 13067
>How-To-Repeat:
Run a script that expected the old behaviour of 'ps -o command,pid',
pick up pieces.
>Fix:
Do not truncate command field to width of 'COMMAND'?
>Release-Note:
>Audit-Trail:
>Unformatted: