Bug 423781

Summary: busybox's ed has a bug in the insert command
Product: [Fedora] Fedora Reporter: D. Hugh Redelmeier <hugh>
Component: busyboxAssignee: Ivana Varekova <varekova>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: 7CC: hugh
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: 1.2.2-10.fc7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-01-03 01:31:19 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
demonstration log none

Description D. Hugh Redelmeier 2007-12-13 17:59:04 UTC
Description of problem:
busybox ed cannot perform the 1i command (to insert a line before the first line).

Version-Release number of selected component (if applicable):
busybox-1.2.2-8.fc7.x86_64

How reproducible:
All the times I've tried it.

Steps to Reproduce:
see log
  
Actual results:
- insertion does not happen
- if you write the buffer, busybox will print a dump when ed quits

Expected results:
- insertion happens
- quit is peaceful

Additional info:
if the buffer is empty, the insertion will work.

Comment 1 D. Hugh Redelmeier 2007-12-13 17:59:04 UTC
Created attachment 287701 [details]
demonstration log

Comment 2 D. Hugh Redelmeier 2007-12-16 04:12:13 UTC
busybox-1.2.2-9.fc7, new in testing, does not seem to fix this.
This bug is not present in the version of busybox in Fedora 8 (1.6.1).

Comment 3 Fedora Update System 2007-12-21 21:08:15 UTC
busybox-1.2.2-10.fc7 has been pushed to the Fedora 7 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update busybox'

Comment 4 Fedora Update System 2007-12-21 21:11:27 UTC
busybox-1.6.1-4.fc8 has been pushed to the Fedora 8 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update busybox'

Comment 5 D. Hugh Redelmeier 2007-12-22 05:06:56 UTC
The test that failed on busybox-1.2.2-8.fc7.x86_64 and on busybox-1.2.2-9.fc7
works on busybox-1.2.2-10.fc7

Thanks!

Comment 6 Fedora Update System 2008-01-03 01:31:17 UTC
busybox-1.2.2-10.fc7 has been pushed to the Fedora 7 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 7 Fedora Update System 2008-01-03 01:44:57 UTC
busybox-1.6.1-4.fc8 has been pushed to the Fedora 8 stable repository.  If problems still persist, please make note of it in this bug report.