sed bug?

Ron Stanonik stanonik at nprdc.navy.mil
Thu Aug 16 02:33:28 AEST 1990


We've run into what appears to be a sed bug in sunos4.X (sun3 snd sun4)
and in sysVr3 (on a 3b2).  Here's a little sed program to demonstrate it

1 s/.*/&/p
d

I'd expect this to print only the first line, and indeed that's what happens
in 4.3bsd (on a vax 780).  In sunos4.X and sysVr3, however, nothing is printed.

If the program is changed to

1p
d

then the first line is printed.

Bug?

Thanks,

Ron Stanonik
stanonik at nprdc.navy.mil



More information about the Comp.unix.wizards mailing list