From owner-freebsd-current Thu Mar 16 11:39:06 1995 Return-Path: current-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id LAA24264 for current-outgoing; Thu, 16 Mar 1995 11:39:06 -0800 Received: from grunt.grondar.za (grunt.grondar.za [196.7.18.129]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id LAA24253 for ; Thu, 16 Mar 1995 11:38:53 -0800 Received: from localhost (localhost [127.0.0.1]) by grunt.grondar.za (8.6.11/8.6.9) with SMTP id VAA07123; Thu, 16 Mar 1995 21:37:15 +0200 Message-Id: <199503161937.VAA07123@grunt.grondar.za> X-Authentication-Warning: grunt.grondar.za: Host localhost didn't use HELO protocol To: "Rodney W. Grimes" cc: paul@isl.cf.ac.uk, FreeBSD-current@FreeBSD.org Subject: Re: ps and grep Date: Thu, 16 Mar 1995 21:37:14 +0200 From: Mark Murray Sender: current-owner@FreeBSD.org Precedence: bulk > > > It really pisses me off when you do ps | grep foo and foo isn't > > > found because it's really long and ps truncates its output to fit > > > the screen width so grep never sees it. > > > > Me too. I would also like to 'ps -gaux | less' and see _everything_. > > Looks like a religious issue... if you run a shell that has aliases > one way to fix this is: OK, War of the roses it is! ;-) A lot of UN*X tools behave differently when faced with an output that is not the terminal. Take a look at "ls" vs "ls | cat". In each case, the output is tailored to to most likely use of the utility; are you looking at the output as formatted for human eyes, or formatted for some other processing? _I_ think that the default output should assume that if stdout is the user's terminal, then it should be truncated, if the output is redirected, let it all hang out, and let the user figure out an alias to undo this if (s)he so desires. M -- Mark Murray 46 Harvey Rd, Claremont, Cape Town 7700, South Africa +27 21 61-3768 GMT+0200