*BSD News Article 87326


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.mel.connect.com.au!news.syd.connect.com.au!phaedrus.kralizec.net.au!news.mel.aone.net.au!grumpy.fl.net.au!news.webspan.net!newsfeeds.sol.net!newspump.sol.net!howland.erols.net!news.sprintlink.net!news-peer.sprintlink.net!uunet!in1.uu.net!199.0.65.182!news-in.tiac.net!posterchild!seahag.rmkhome.com!rmk
From: rmk@rmkhome.com (Rick Kelly)
Newsgroups: comp.unix.bsd.netbsd.misc
Subject: Re: Question about sed on different systems
Date: 23 Jan 1997 04:45:29 GMT
Organization: The Man With Ten Cats
Lines: 16
Message-ID: <5c6qd9$92t@news-central.tiac.net>
References: <5c5qo2$c2j@darkstar.ucsc.edu>
Reply-To: rmk@seahag.rmkhome.com
NNTP-Posting-Host: seahag.rmkhome.com
X-Newsreader: TIN [version 1.2 PL2]
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.netbsd.misc:5227

James H. Haynes (haynes@cats.ucsc.edu) wrote:
: I've just asked this on comp.std.unix to find out what is canonically
: correct.  Meanwhile maybe someone can explain the following

: echo -n "AX" | sed -e 's/X//'

: produces an A on NetBSD and nothing on SunOS 4.1.4   I'm guessing the
: difference is something in the C library, as I compiled sed from the 
: GNU sources on both platforms.  echo -n "AX" > foo produces an identical
: file on both (verified by od -bc foo).

I just tried this on SunOS 4.1.4, NetBSD/i386 1.2, and NetBSD/i386 1.0A.
The output in all three cases was nothing.
--
Rick Kelly  rmk@seahag.rmkhome.com  rmk@rmkhome.com 
            http://tencats.rmkhome.com