Deprecating ps(1)s -w switch

Ivan Radovanovic rivanr at gmail.com
Tue Aug 25 14:24:31 UTC 2009


Ed Schouten napisa:
> * Brian Somers <brian at FreeBSD.org> wrote:
>   
>> I recently closed bin/137647 and had second thoughts after Ivan (the
>> originator) challenged my reason for closing it.
>>
>> The suggestion is that ps's -w switch is a strange artifact that can
>> be safely deprecated.  ps goes to great lengths to implement width
>> limitations, and any time I've seen people not using -ww has either
>> been a mistake or doesn't matter.  Using 'cut -c1-N' is also a great
>> way of limiting widths if people really want that...
>>
>> I'd like to propose changing ps so that width limits are removed and
>> '-w' is deprecated - ignored for now with a note in the man page
>> saying that it will be removed in a future release.
>>
>> Does anyone have any objections to doing this?  I don't propose
>> merging this back into stable/8.
>>     
>
> So ps(1) output can never be limited to the screen width?
>   
I think it would be smart not to limit width by default (ie default 
behavior to be like with -ww), but to have some switch (like -w) to 
limit width if someone really needs to do that, although with "cut -c 
1-80" could be achieved limiting...


More information about the freebsd-hackers mailing list