Bug 217720 - "u" inside a sed substution does not work
Summary: "u" inside a sed substution does not work
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: sed
Version: 4.0
Hardware: x86_64
OS: Linux
Target Milestone: ---
: ---
Assignee: Petr Machata
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 2006-11-29 16:00 UTC by John Curcio
Modified: 2015-05-05 01:32 UTC (History)
1 user (show)

Clone Of:
Last Closed: 2008-04-09 16:10:30 UTC

Attachments (Terms of Use)
Fix for RHEL-4 (1.31 KB, patch)
2006-12-12 13:42 UTC, Petr Machata
no flags Details | Diff
Test case. (407 bytes, application/x-shellscript)
2006-12-12 13:42 UTC, Petr Machata
no flags Details

External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2008:0202 normal SHIPPED_LIVE sed bug fix update 2008-07-23 21:55:49 UTC

Description John Curcio 2006-11-29 16:00:10 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7

Description of problem:
Executing => /bin/echo dsyn | /bin/sed -e 's/[a-z]/\u&/g' does not give proper results ... ie, it only results in a blank carriage return instead of having the imput characters translated to upper case

Version-Release number of selected component (if applicable):
sed-4.1.2-4 & sed-4.1.2-5-EL4

How reproducible:

Steps to Reproduce:
1./bin/echo dsyn | /bin/sed -e 's/[a-z]/\u&/g'

Actual Results:
Executing this command gives me no results ... just a blank carrage return.

Expected Results:
I should have the charcaters "dsyn" translated to upper case.

Additional info:
While not a bug that crashes our system, this does effect our production environment rather significantly and is rather time sensitive.

Comment 1 Petr Machata 2006-12-12 13:42:12 UTC
Created attachment 143388 [details]
Fix for RHEL-4

This patch is backport from 4.1.3.

Comment 2 Petr Machata 2006-12-12 13:42:54 UTC
Created attachment 143389 [details]
Test case.

Comment 9 errata-xmlrpc 2008-04-09 16:10:30 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.


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