🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sources.bugs
Article #70

inconsistent behavior of sed

#70
From: Glen Brydon
Date: Sun, 09 Jul 1989 11:31
17 lines
1181 bytes
Upon upgrading to 4.0.3 of SunOS (yes, another version of bsd unix)
we noticed that one of our many shell scripts stopped working.
Upon examination we found that it was a sed script which did the
following:

	sed 's/.*/&/p;d'  (this is a minimal condensation)

It seems obvious to me that this should simply pass all information,
however, some versions of sed actually delete. This seems to be always
true of sysV sed and recently true of bsd sed (post 4.0 sunOS).

Is there anyone out there who has noticed this or disagrees with my
acessment of the situation (i.e. sysV sed has a bug!).

Please email me and I will summarize to the net.

Glen Brydon (glen@proexam.uucp)
Technical Details
Message-ID: <377@proexam.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!mailrus!tut.cis.ohio-state.edu!unmvax!pprg.unm.edu!hc!lanl!cmcl2!rocky8!cucard!proexam!glen

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!mailrus!tut.cis.ohio-state.edu!unmvax!pprg.unm.edu!hc!lanl!cmcl2!rocky8!cucard!proexam!glen
From: glen@proexam.UUCP (Glen Brydon)
Newsgroups: comp.sources.bugs
Subject: inconsistent behavior of sed
Summary: SunOS/4.0 bsd and sysV versions of sed are inconsistent
Keywords: substitute delete botched confusion
Message-ID: <377@proexam.UUCP>
Date: 9 Jul 89 11:31:10 GMT
Organization: Professional Examination Service, NYC
Lines: 18