*BSD News Article 75445


Return to BSD News archive

X-Newsreader: knews 0.9.3
Organization: University of Rostock, Germany
From: lkoeller@odie.physik2.uni-rostock.de (Lars Koeller)
Subject: Is sed in 2.1.5 buggy??
Newsgroups: comp.unix.bsd.freebsd.misc
NNTP-Posting-Host: 139.30.40.28
Message-ID: <32061d9f.0@info4.uni-rostock.de>
Date: 5 Aug 96 16:13:19 GMT
Lines: 33
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!news.eng.convex.com!newshost.convex.com!news.onramp.net!ulowell.uml.edu!tribune.meitca.com!bloom-beacon.mit.edu!news.mathworks.com!newscaster-1.mcast.net!informatik.uni-bremen.de!cs.tu-berlin.de!unlisys!CNB.CompuNet.DE!zrz.TU-Berlin.DE!info4.uni-rostock.de!

   Hi!

       The  sed  included in 2.1.5   is perhaps  a little   bit  buggy! The
   faces.sendmail script which works up to now without any trouble seems to
   be not accepted from the sed anymore (error on the branch copy command).

   I get the GNU set-2.05 and all works fine!

   Here is the script

cat $HOME/.face - | gsed -n \
	-e '1s/^/X-Face:/' \
	-e 1h \
	-e 1d \
	-e '/^[ 	]/{H;d;}' \
	-e ': copy0' \
	-e '/^$/!{p;n;}' \
	-e '/^$/!b copy0' \
	-e g \
	-e p \
	-e 'a\

' \
	-e n \
	-e ': copy' \
	-e p \
	-e n \
	-e 'b copy' | /usr/sbin/sendmail "$@"

   Is this a feature or a bug?

   Lars

-- 
________________________________________________________________________
Lars Köller                  Phone:  +49 381/498-1665, Fax: -1667
University of Rostock        E-Mail: 
Department of Physics          Lars_Koeller@odie.physik2.Uni-Rostock.DE
Universitätsplatz 3          Anonymous ftp:
D-18051 Rostock (Germany)      ftp://odie.physik2.uni-rostock.de/pub