Bug 15081 - ed bug in files with few lines
Summary: ed bug in files with few lines
Status: NEW
Alias: None
Product: Busybox
Classification: Unclassified
Component: Other (show other bugs)
Version: 1.35.x
Hardware: All Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-30 18:49 UTC by ricercar
Modified: 2022-10-30 19:27 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.