[Bug 1048135] Re: Incorrect handling of "^[^ ]+ " in gsub
[Expired for mawk (Ubuntu) because there has been no activity for 60 days.] ** Changed in: mawk (Ubuntu) Status: Incomplete => Expired -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1048135 Title: Incorrect handling of "^[^ ]+ " in gsub To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/mawk/+bug/1048135/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1048135] Re: Incorrect handling of "^[^ ]+ " in gsub
apport information ** Tags added: precise ** Description changed: echo "30 29 27 26 23" | mawk '{gsub ("^[^ ]+ ", ""); print $0}' leads to print "23" instead of "29 27 26 23" According to the man the leading "^" matches the front of a string, but it seems to be ignored. This works OK with gawk. --- Architecture: i386 DistroRelease: Ubuntu 10.04 InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release i386 (20100429) Package: mawk 1.3.3-15ubuntu2 PackageArchitecture: i386 ProcEnviron: PATH=(custom, user) LANG=en_US.utf8 SHELL=/bin/bash ProcVersionSignature: Ubuntu 2.6.32-42.96-generic 2.6.32.59+drm33.24 Tags: lucid Uname: Linux 2.6.32-42-generic i686 UserGroups: + --- + ApportVersion: 2.0.1-0ubuntu12 + Architecture: i386 + DistroRelease: Ubuntu 12.04 + InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release i386 (20120423) + Package: mawk 1.3.3-17 + PackageArchitecture: i386 + ProcEnviron: + TERM=xterm + PATH=(custom, no user) + LANG=en_US.UTF-8 + SHELL=/bin/bash + ProcVersionSignature: Ubuntu 3.2.0-30.48-generic-pae 3.2.27 + Tags: precise + Uname: Linux 3.2.0-30-generic-pae i686 + UpgradeStatus: No upgrade log present (probably fresh install) + UserGroups: ** Attachment added: "Dependencies.txt" https://bugs.launchpad.net/bugs/1048135/+attachment/3304847/+files/Dependencies.txt -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1048135 Title: Incorrect handling of "^[^ ]+ " in gsub To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/mawk/+bug/1048135/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1048135] Re: Incorrect handling of "^[^ ]+ " in gsub
apport information ** Tags added: apport-collected ** Description changed: echo "30 29 27 26 23" | mawk '{gsub ("^[^ ]+ ", ""); print $0}' leads to print "23" instead of "29 27 26 23" According to the man the leading "^" matches the front of a string, but it seems to be ignored. This works OK with gawk. + --- + Architecture: i386 + DistroRelease: Ubuntu 10.04 + InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release i386 (20100429) + Package: mawk 1.3.3-15ubuntu2 + PackageArchitecture: i386 + ProcEnviron: + PATH=(custom, user) + LANG=en_US.utf8 + SHELL=/bin/bash + ProcVersionSignature: Ubuntu 2.6.32-42.96-generic 2.6.32.59+drm33.24 + Tags: lucid + Uname: Linux 2.6.32-42-generic i686 + UserGroups: ** Attachment added: "Dependencies.txt" https://bugs.edge.launchpad.net/bugs/1048135/+attachment/3304837/+files/Dependencies.txt -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1048135 Title: Incorrect handling of "^[^ ]+ " in gsub To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/mawk/+bug/1048135/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1048135] Re: Incorrect handling of "^[^ ]+ " in gsub
Thank you for taking the time to report this bug and helping to make Ubuntu better. Please execute the following command, as it will automatically gather debugging information, in a terminal: apport-collect 1048135 When reporting bugs in the future please use apport by using 'ubuntu-bug' and the name of the package affected. You can learn more about this functionality at https://wiki.ubuntu.com/ReportingBugs. ** Changed in: mawk (Ubuntu) Status: New => Incomplete -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1048135 Title: Incorrect handling of "^[^ ]+ " in gsub To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/mawk/+bug/1048135/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs