Bug 15081

Summary: ed bug in files with few lines
Product: Busybox Reporter: ricercar
Component: OtherAssignee: unassigned
Status: NEW ---    
Severity: normal CC: busybox-cvs
Priority: P5    
Version: 1.35.x   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Host: Target:
Build:

Description ricercar 2022-10-30 18:49:40 UTC
seq 1 4 > file;busybox ed file
2i
test
.
w
q


Expect: Second line to be replaced with "test"
What happens: First line is replaced with "test"

If i use 'seq 1 6' or more instead it seems to work as expected, although I havent tested much.