Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.

Bug 437415

Summary: Fedora 8 distribution package of sed editor not working.
Product: [Fedora] Fedora Reporter: Bob Kirchgesler <bobkirch>
Component: sedAssignee: Petr Machata <pmachata>
Status: CLOSED WORKSFORME QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: 8CC: mnewsome
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-07-16 06:03:54 EDT Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description Bob Kirchgesler 2008-03-13 18:07:13 EDT
Description of problem: After performing an upgrade from Fedora 7 to Fedora 8 
I noticed that sed no longer likes to delete blank lines from a file using the 
standard command (sed '/^$/d' filename).

Version-Release number of selected component (if applicable):
Source RPM: sed-4.1.5-9.fc8.src.rpm

How reproducible:
Attempt to use sed to remove blank lines from a file.


Steps to Reproduce:
1.Create a simple file with several lines of alternating text and blank lines.
2.Use standard sed commands to remove the blank lines from the file.
3.ie - sed -e '/^$/d' filename > outfile - or - sed '/^$/d' filename - or -
sed '/./d' filename.
  
Actual results:
All blank lines which were originally blank in the file were still present 
after command execution.

Expected results:
All blank lines should have been removed from the file.

Additional info:
I also ran sed with the 'l' option for debugging and it returned blank lines 
as well as the carriage return characters '\$r' which were expected.
These sed commands work fine on my Fedora 7 distribution.
Comment 1 Petr Machata 2008-03-14 05:02:39 EDT
Works for me:

$ rpm -q sed
sed-4.1.5-9.fc8
$ echo -ne 'hallo\n\n\nworld\n' | sed '/^$/d'
hallo
world

Please check that "rpm -V sed" doesn't complain and also please check that there
were no AVC (SELinux) denials during the upgrade.
In any case try to reinstall the sed package, and check that the problem persists.
Comment 2 Bob Kirchgesler 2008-03-14 09:55:12 EDT
Thank you for your feedback.  Your SELinux AVC denial suggestion was valid. 
Upgrading from Fedora 7 to Fedora 8 replaces the sshd_config file.  I use a 
sed script verify sshd variable settings by grepping non-commented lines and 
then stripping out the blank lines from the output file using sed.
Turns out the problem is specific to the sshd_config file not a test file. My 
apologies for not testing that option prior to placing the bugzilla.
Now if I only knew why other sed edits work on the new sshd_config file and 
not the deletion of blank lines I would be all sed. (pardon the pun)
Comment 3 Bob Kirchgesler 2008-03-14 09:56:00 EDT
Thank you for your feedback.  Your SELinux AVC denial suggestion was valid. 
Upgrading from Fedora 7 to Fedora 8 replaces the sshd_config file.  I use a 
sed script verify sshd variable settings by grepping non-commented lines and 
then stripping out the blank lines from the output file using sed.
Turns out the problem is specific to the sshd_config file not a test file. My 
apologies for not testing that option prior to placing the bugzilla.
Now if I only knew why other sed edits work on the new sshd_config file and 
not the deletion of blank lines I would be all sed. (pardon the pun)