Article View: gnu.utils.bug
Article #24sed 1.11 bug
From: root
Date: Thu, 29 Oct 1992 10:40
Date: Thu, 29 Oct 1992 10:40
19 lines
915 bytes
915 bytes
Sed's 'D' command doesn't work if the pattern space comprises a single line
of '\n'-terminated text. The following patch seems to fix the problem.
-Chris Weber <weber@bucknell.edu>
*** sed.c.orig Thu Oct 29 15:13:26 1992
--- sed.c Thu Oct 29 15:16:00 1992
***************
*** 1189,1194 ****
--- 1189,1195 ----
line.length=newlength;
goto restart;
}
+ line.length=0;
end_cycle++;
}
break;
Technical Details
Message-ID:
<9210292040.AA09013@coral.bucknell.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!ogicse!uwm.edu!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!coral.bucknell.edu!rootShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!ogicse!uwm.edu!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!coral.bucknell.edu!root From: root@coral.bucknell.edu (root) Newsgroups: gnu.utils.bug Subject: sed 1.11 bug Message-ID: <9210292040.AA09013@coral.bucknell.edu> Date: 29 Oct 92 10:40:57 GMT Article-I.D.: coral.9210292040.AA09013 Sender: gnulists@ai.mit.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 19 Approved: bug-gnu-utils@prep.ai.mit.edu