From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 27 10:36:38 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C55E1106568D; Thu, 27 Aug 2009 10:36:38 +0000 (UTC) (envelope-from rivanr@gmail.com) Received: from mail-fx0-f210.google.com (mail-fx0-f210.google.com [209.85.220.210]) by mx1.freebsd.org (Postfix) with ESMTP id 283968FC41; Thu, 27 Aug 2009 10:36:37 +0000 (UTC) Received: by fxm6 with SMTP id 6so796710fxm.43 for ; Thu, 27 Aug 2009 03:36:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=EVk4wxfSrrdCPc9rumIl6lpIoqE8boq4VMJ0Q/rhACs=; b=N8oJA8ykcbjHVwW0GuKsAgNnBEqCl0nQE7TydKRovbDCQFapK+rc31CweET8MCrPLm FnamAbItw21hL88CPkTDx/3p85eAMuP3y3t6qrRVXiaHbxiKpcO6P6S9PpGuhr/CKWvV g5Mbtr/6E4gigufugn4uMVv+O6JtuQw7l91I0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=Md0iz2vJkmQnHYl0egN7+opHHnkiYa53iMR802grMskyjYCtCiw7aoazG2GTwpaiOz 10mHh1OP0YY1SAjkI96qbzGjp7ne/YTE899sHBhS+VBdwLjEe4oa7Vp8XxkFQ6gvzoRX CNOdIEviZJ1Zrq6+DLBA5FW88KBWy1EDoqjcs= Received: by 10.102.149.23 with SMTP id w23mr4202954mud.38.1251369393499; Thu, 27 Aug 2009 03:36:33 -0700 (PDT) Received: from azdaja.softwarehood.com ([95.180.33.218]) by mx.google.com with ESMTPS id n7sm7262629mue.25.2009.08.27.03.36.32 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 27 Aug 2009 03:36:33 -0700 (PDT) Message-ID: <4A9661AF.3040800@gmail.com> Date: Thu, 27 Aug 2009 12:36:31 +0200 From: Ivan Radovanovic User-Agent: Thunderbird 2.0.0.22 (X11/20090708) MIME-Version: 1.0 To: =?UTF-8?B?RGFnLUVybGluZyBTbcO4cmdyYXY=?= References: <20090825034054.2d57e733@dev.lan.Awfulhak.org> <20090826234009.13b90734@dev.lan.Awfulhak.org> <86fxbd1rg1.fsf@ds4.des.no> In-Reply-To: <86fxbd1rg1.fsf@ds4.des.no> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Cc: freebsd-hackers@FreeBSD.org, Brian Somers Subject: Re: Deprecating ps(1)s -w switch X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Aug 2009 10:36:38 -0000 Dag-Erling Smørgrav napisa: > Actually, ls does pretty much the same thing (use a different layout > when run on a tty), and it's far from the only Unix utility to do so. > Usually, the tty layout is "pretty" while the non-tty layout is easier > to work with in scripts. > Actually ls doesn't work the same - ls tries to format its output according to terminal but if it can't it won't just chop off any piece of information, and if you pipe ls into other command's input ls behaves as not running on tty - ps behaves in the opposite way in both cases