From owner-freebsd-bugs@FreeBSD.ORG Wed Jul 23 09:30:14 2003 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 12C1037B401 for ; Wed, 23 Jul 2003 09:30:14 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8679443F3F for ; Wed, 23 Jul 2003 09:30:13 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h6NGUDUp031274 for ; Wed, 23 Jul 2003 09:30:13 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h6NGUDwT031273; Wed, 23 Jul 2003 09:30:13 -0700 (PDT) Date: Wed, 23 Jul 2003 09:30:13 -0700 (PDT) Message-Id: <200307231630.h6NGUDwT031273@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Peter Pentchev Subject: Re: bin/54784: find -ls wastes space X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Peter Pentchev List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Jul 2003 16:30:14 -0000 The following reply was made to PR bin/54784; it has been noted by GNATS. From: Peter Pentchev To: Andy Farkas Cc: bug-followup@FreeBSD.org Subject: Re: bin/54784: find -ls wastes space Date: Wed, 23 Jul 2003 19:23:42 +0300 On Thu, Jul 24, 2003 at 02:12:30AM +1000, Andy Farkas wrote: > On Wed, 23 Jul 2003, Peter Pentchev wrote: >=20 > > Would this not break existing scripts, which rely on the current > > fixed formatting? >=20 > You think? Most scripts would use spaces as a field seperator, so reducing > the number of spaces shouldn't affect them. In the past, people have objected strongly to changing the output of ps(1) for exactly this reason. IMHO, there are several reasons not to rely on whitespace in parsing the output of ls(1) or find(1); for a trivial, though somewhat rare, example, consider whitespace in the localized representation of date and time. Other than that, there might be the human problem of comparing the output of 'find' run on different machines with different usernames, or even on the same machine, different directories owned by different users; the columns, and sometimes line continuations, would be all out of whack. G'luck, Peter --=20 Peter Pentchev roam@ringlet.net roam@sbnd.net roam@FreeBSD.org PGP key: http://people.FreeBSD.org/~roam/roam.key.asc Key fingerprint FDBA FD79 C26F 3C51 C95E DF9E ED18 B68D 1619 4553 I am not the subject of this sentence.