From owner-freebsd-questions@FreeBSD.ORG Wed Sep 26 00:40:28 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8C95916A420 for ; Wed, 26 Sep 2007 00:40:28 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.freebsd.org (Postfix) with ESMTP id DA33513C478 for ; Wed, 26 Sep 2007 00:40:27 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from kobe.laptop (dialup129.ach.sch.gr [81.186.70.129]) (authenticated bits=128) by igloo.linux.gr (8.14.1/8.14.1/Debian-9) with ESMTP id l8Q0ds9q012504 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 26 Sep 2007 03:40:15 +0300 Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.14.1/8.14.1) with ESMTP id l8Q0dqqG020871; Wed, 26 Sep 2007 03:39:52 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost) by kobe.laptop (8.14.1/8.14.1/Submit) id l8Q0doxT020870; Wed, 26 Sep 2007 03:39:50 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Wed, 26 Sep 2007 03:39:50 +0300 From: Giorgos Keramidas To: Pollywog Message-ID: <20070926003949.GB20755@kobe.laptop> References: <20070925013723.GA50027@thought.org> <20070925182855.GH50519@thought.org> <20070925222147.GB2513@kobe.laptop> <200709252249.25904.lists-fbsd@shadypond.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200709252249.25904.lists-fbsd@shadypond.com> X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-3.904, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.49, BAYES_00 -2.60) X-Hellug-MailScanner-From: keramida@ceid.upatras.gr X-Spam-Status: No Cc: freebsd-questions@freebsd.org Subject: Re: sed question... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Sep 2007 00:40:28 -0000 On 2007-09-25 22:49, Pollywog wrote: > On Tuesday 25 September 2007 22:21:48 Giorgos Keramidas wrote: > > A word of caution there... > > > > If you plan to use GNU/Linux manpages for learning sed(1) be _very_ > > cautious for GNU/Linux-specific parts. There are subtle, yet > > possibly important differences between GNU/Linux sed and BSD sed. > > I am generally aware that sometimes there are differences between the > utilities used with Linux and their BSD counterparts. As for the > differences themselves, do they exist because someone has "reinvented" > the utilities or is there perhaps another reason? The history and evolution of the BSD command-line tools and their GNU counterparts is not exactly 'linear'. Some of the BSD features were implemented first in BSD sources, and then where reimplemented from scratch in the GNU toolchain. Others were implemented first in the GNU tools and were ported to BSD. Sometimes, when porting a certain feature from GNU tools to the BSD world there were 'conflicts', i.e. an option letter was already taken, or the way GNU tools did something didn't fit the existing "BSD way of life" so it was retrofitted to the traditional BSD standards, to avoid POLA violations for example. It's not easy to answer precisely what the reasons for all the possible differences are, but we can at least try if you have a particular difference in mind :-) - Giorgos