🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.bugs.4bsd
Article #60

`t' command of sed does not work fine.

#60
From: Katsuhiro Watanabe
Date: Fri, 18 Aug 1989 02:34
35 lines
1241 bytes
	Hello, world. I am using 4.3BSD on VAX.
 	I found a bug on sed of BSDs, so I would like to report it.

	Even if no substitution have been made before `t'(since
the most recent reading of and input line), it often branches.

	For example:
n125:104%cat t.sed
#
1{
        s/.*//
        d
}
t set
s/.*/t flag have been reset./
q
: set
s/.*/t flag is still set./
q
n125:105%echo '1\
2' | sed -f t.sed

	Then, on VAX, I get	"t flag is still set.".
	On SUN, 		"t flag have been reset.".

	On VAX, there is an inconsistency with manual.
	I think it occurs on most BSDs except SUN.

	Is this known yet?
							thank you.
----____----____
WATANABE Katsuhiro
Software Tools and Technology Division, SRA Inc., Japan.
Not compute f(x), but evaluate it.
Technical Details
Message-ID: <2427@srava.sra.JUNET>
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!gem.mps.ohio-state.edu!ginosko!uunet!kddlab!titcca!sragwa!srava!katsu

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!gem.mps.ohio-state.edu!ginosko!uunet!kddlab!titcca!sragwa!srava!katsu
From: katsu@srava.sra.JUNET (Katsuhiro Watanabe)
Newsgroups: comp.bugs.4bsd
Subject: `t' command of sed does not work fine.
Message-ID: <2427@srava.sra.JUNET>
Date: 18 Aug 89 02:34:58 GMT
Reply-To: katsu@sra.JUNET (Katsuhiro Watanabe)
Organization: Software Research Associates, Inc., Japan
Lines: 35