broken parsing of [ in y command

Bug #122950 reported by Schplurtz le déboulonné
2
Affects Status Importance Assigned to Milestone
sed (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: sed

Hello,

[ should be considered a normal char in the y command.
but, [ needs a matching ], and the content of [...] is not considered as an intervall.
Something is wrong here.
Other sed (solaris 9 for example) treat [ as a normal char in y command.

according to both info and man page, [ is not special in y command.

examples :
sed -e 'y/[/_/'
sed: -e expression #1, char 6: unterminated `y' command

echo azerty | sed -e 'y/[a-z]/[A-Z]/'
AZerty

echo 'az[erty]' | sed -e 'y/[][a-z]/[)(A-Z]/'
AZ[erty)

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 6.06.1 LTS
Release: 6.06
Codename: dapper

$ dpkg -l sed | grep ii
ii sed 4.1.4-5 The GNU sed stream editor

Revision history for this message
YoBoY (yoboy-leguesh) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. However, I am closing it because the bug has been fixed in the latest development version of Ubuntu - the Jaunty Jackalope.

If you need a fix for the bug in previous versions of Ubuntu, please follow the instructions for "How to request new packages" at https://help.ubuntu.com/community/UbuntuBackports#request-new-packages

Tested also in Intrepid Ibex 8.10

Changed in sed (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.