From owner-cvs-all Fri Jun 14 12:59:11 2002 Delivered-To: cvs-all@freebsd.org Received: from mail.rpi.edu (mail.rpi.edu [128.113.22.40]) by hub.freebsd.org (Postfix) with ESMTP id BDF2137B41F; Fri, 14 Jun 2002 12:59:05 -0700 (PDT) Received: from [128.113.24.47] (gilead.netel.rpi.edu [128.113.24.47]) by mail.rpi.edu (8.12.1/8.12.1) with ESMTP id g5EJw9oK145528; Fri, 14 Jun 2002 15:58:10 -0400 Mime-Version: 1.0 X-Sender: drosih@mail.rpi.edu Message-Id: In-Reply-To: <200206141811.g5EIBhND015735@khavrinen.lcs.mit.edu> References: <200206141102.50292.mi+mx@aldan.algebra.com> <20020614113752.K11520-100000@blues.jpj.net> <86k7p16c4q.wl@archon.local.idaemons.org> <20020614101409.A88549@FreeBSD.ORG> <86hek56abw.wl@archon.local.idaemons.org> <200206141811.g5EIBhND015735@khavrinen.lcs.mit.edu> Date: Fri, 14 Jun 2002 15:58:08 -0400 To: Garrett Wollman , "Akinori MUSHA" From: Garance A Drosihn Subject: Re: cvs commit: ports/Mk bsd.port.mk Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Content-Type: text/plain; charset="us-ascii" ; format="flowed" X-Scanned-By: MIMEDefang 2.3 (www dot roaringpenguin dot com slash mimedefang) Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG At 2:11 PM -0400 6/14/02, Garrett Wollman wrote: >< said: > >> Juli Mallett wrote: >>> sed 's/foo/bar/;s/blah/bleh/' file | tee file > /dev/null > > > Surely that'll work, but it has to be a single command to > > be used in the ports infrastructure, no? > >It might work, but only by chance as a result of a race >condition and only on very small files. Hmm. Garrett's comment on small files reminded me of something. At some point in my past, I had to use perl to patch strings in some object files. For me, the issue was that sed was either truncating or "not scanning" very long lines. Whatever it was I was patching, it had those kinds of very long lines, and the result from using sed was a damaged file. Will our sed work correctly on files which have basically infinite-length "lines"? (when I ran into this, I am sure it was *not* on FreeBSD...) -- Garance Alistair Drosehn = gad@gilead.netel.rpi.edu Senior Systems Programmer or gad@freebsd.org Rensselaer Polytechnic Institute or drosih@rpi.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message