Bug 437415 - Fedora 8 distribution package of sed editor not working.
Summary: Fedora 8 distribution package of sed editor not working.
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Fedora
Classification: Fedora
Component: sed
Version: 8
Hardware: i386
OS: Linux
low
low
Target Milestone: ---
Assignee: Petr Machata
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-03-13 22:07 UTC by Bob Kirchgesler
Modified: 2015-05-05 01:33 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-07-16 10:03:54 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Bob Kirchgesler 2008-03-13 22:07:13 UTC
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 09:02:39 UTC
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 13:55:12 UTC
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 13:56:00 UTC
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)


Note You need to log in before you can comment on or make changes to this bug.