From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 26 15:53:53 2007 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id AA4CF16A405 for ; Mon, 26 Mar 2007 15:53:53 +0000 (UTC) (envelope-from joseph.koshy@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.226]) by mx1.freebsd.org (Postfix) with ESMTP id 6975D13C468 for ; Mon, 26 Mar 2007 15:53:53 +0000 (UTC) (envelope-from joseph.koshy@gmail.com) Received: by wr-out-0506.google.com with SMTP id 70so820493wra for ; Mon, 26 Mar 2007 08:53:52 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=VpPlUIz1kpCn5ielOMCCtMQGyVVZK8mKMXKNee2L510IohwOOH4fkrOZ/XdG3ReUsMUT34+S6LyevNCDarjwC+ua2IdwSq5p+XgiB0oh809TFHHMfiXEPXi5+HJJ5OGiTOMHxmIWMrE5R464e63DqKFBktDzVmPsLngloTsshCA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=r/BAvZVEWSigQxGD3eU/ryLB2IPjTJ/CpF5jzM2POk9gONLcLnLy3diq2TUSnPCDllBdyPG9X4IWjrrcioGsYTEHYbSXVH7UBMMkVN0b0Nw8Knhzj3/S/MkMf5C1tiilDoR36XtnxrW1LSHyFalvERtLigkVDGqv38Rh6y9GUEw= Received: by 10.114.202.15 with SMTP id z15mr2676124waf.1174922834947; Mon, 26 Mar 2007 08:27:14 -0700 (PDT) Received: by 10.115.23.9 with HTTP; Mon, 26 Mar 2007 08:27:14 -0700 (PDT) Message-ID: <84dead720703260827q29ed7f26hd79dde461fe50d9b@mail.gmail.com> Date: Mon, 26 Mar 2007 20:57:14 +0530 From: "Joseph Koshy" To: "Yar Tikhiy" In-Reply-To: <20070326135106.GG60831@comp.chem.msu.su> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20070326135106.GG60831@comp.chem.msu.su> Cc: hackers@freebsd.org Subject: Re: sed -i 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: Mon, 26 Mar 2007 15:53:53 -0000 > Recently noticed that our sed(1) differs from its GNU > analog in that in -i mode it considers all files as a > single sequence of lines while the latter treats each file > independently. The in-line mode isn't in POSIX, so it isn't > really clear which way is correct. Aren't sed's addresses required to be cumulative across its input files? http://www.opengroup.org/onlinepubs/009695399/utilities/sed.html -- FreeBSD Volunteer, http://people.freebsd.org/~jkoshy