broken parsing of [ in y command
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-
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
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