Date: Fri, 9 Jan 2009 01:51:06 -0500 From: Mike Meyer <mwm@mired.org> To: "Sheldon Givens" <sheldon@sigsegv.ca> Cc: freebsd-hackers@freebsd.org Subject: Re: Small change to 'ps' Message-ID: <20090109015106.3614a378@mbook.local> In-Reply-To: <f4ecc0930901070927m2eec8770r9df984b21a97f5f7@mail.gmail.com> References: <f4ecc0930901061152q2ad01c4fj42dec8ad9fb201fa@mail.gmail.com> <20090107125759.GA1462@roadrunner.spoerlein.net> <alpine.BSF.2.00.0901070851560.43659@thor.farley.org> <20090107154854.GC1462@roadrunner.spoerlein.net> <f4ecc0930901070927m2eec8770r9df984b21a97f5f7@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 7 Jan 2009 09:27:24 -0800 "Sheldon Givens" <sheldon@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@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090109015106.3614a378>