Red Hat Bugzilla – Bug 217720
"u" inside a sed substution does not work
Last modified: 2015-05-04 21:32:53 EDT
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
Steps to Reproduce:
1./bin/echo dsyn | /bin/sed -e 's/[a-z]/\u&/g'
Executing this command gives me no results ... just a blank carrage return.
I should have the charcaters "dsyn" translated to upper case.
While not a bug that crashes our system, this does effect our production environment rather significantly and is rather time sensitive.
Created attachment 143388 [details]
Fix for RHEL-4
This patch is backport from 4.1.3.
Created attachment 143389 [details]
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.