Small change to 'ps'

Mike Meyer mwm at mired.org
Thu Jan 8 23:17:53 PST 2009


On Wed, 7 Jan 2009 09:27:24 -0800 "Sheldon Givens" <sheldon at sigsegv.ca> wrote:
> And I guess I just feel like running a second command to do what should be
> possible to do with the first command (and is, on many platforms. ps
> --no-headers on linux for example) is a problem and presents opportunity for
> continued refinement of the utility.

I agree. However, I think we might want to look at a broader scope, in
that the same argument applies to pretty much every command that
outputs headers - if you're feeding the output to a program, you
probably don't want the headers, and copying all the output through
another process for the sole purpose of removing them seems
wasteful. That we already have commands in the base system that
implement this functionality would imply that others agree with this.

So `--no-headers' is ok. However, `-n' has lots of different meanings
in different commands. How about borrowing from existing commands that
already implement this functionality (zfs and zpool) and using `-H',
which is relatively rarely used elsewhere?

      <mike
-- 
Mike Meyer <mwm at mired.org>		http://www.mired.org/consulting.html
Independent Network/Unix/Perforce consultant, email for more information.

O< ascii ribbon campaign - stop html mail - www.asciiribbon.org


More information about the freebsd-hackers mailing list