Bug 112952
Summary: | sed 4.0.8 and t command | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Derrien <derrien> |
Component: | sed | Assignee: | Jakub Jelinek <jakub> |
Status: | CLOSED RAWHIDE | QA Contact: | Ben Levenson <benl> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 1 | ||
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i686 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | 4.0.8-3 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2004-01-07 14:47:52 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: |
Description
Derrien
2004-01-06 16:43:15 UTC
My understanding of http://www.opengroup.org/onlinepubs/007904975/utilities/sed.html is that the latter behaviour is correct. "If no next line of input is available, the N command verb shall branch to the end of the script and quit without starting a new cycle or copying the pattern space to standard output." From /usr/share/doc/sed-4.0.8/BUGS : * NON-BUGS ... `N' command on the last line Most versions of sed exit without printing anything when the `N' command is issued on the last line of a file. GNU sed instead prints pattern space before exiting unless of course the `-n' command switch has been specified. More information on the reason behind this choice can be found in the Info manual. Paolo Bonzini (sed maintainer) provided a patch which restores the old N behaviour unless POSIXLY_CORRECT is set in the environment. The patch is included in sed-4.0.8-3 in rawhide. |