[Bug 460985] Re: grep {, m} construction gives error: "malformed repeat count"
Launchpad Bug Tracker
460985 at bugs.launchpad.net
Tue Aug 6 04:17:27 UTC 2013
[Expired for grep (Ubuntu) because there has been no activity for 60
days.]
** Changed in: grep (Ubuntu)
Status: Incomplete => Expired
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to grep in Ubuntu.
https://bugs.launchpad.net/bugs/460985
Title:
grep {,m} construction gives error: "malformed repeat count"
Status in “grep” package in Ubuntu:
Expired
Bug description:
Binary package hint: grep
grep 2.5.4-4 on Karmic amd64
According to the manual page:
{,m} The preceding item is matched at most m times.
But:
alex at Ike:~$ echo 23:45.67 | grep '[0-9]\{,2\}:[0-9]\{2\}\.[0-9]\{2\}'
grep: malformed repeat count
alex at Ike:~$ echo 23:45.67 | grep '[0-9]\{0,2\}:[0-9]\{2\}\.[0-9]\{2\}'
23:45.67
alex at Ike:~$
With -E, the bug is still there, but reported differently:
alex at Ike:~$ echo 23:45.67 | grep -E '[0-9]{,2}:[0-9]{2}\.[0-9]{2}'
alex at Ike:~$ echo 23:45.67 | grep -E '[0-9]{0,2}:[0-9]{2}\.[0-9]{2}'
23:45.67
alex at Ike:~$
I have used {,m} often enough in the past. I don't think it was
broken in Intrepid or Debian Etch.
ProblemType: Bug
Architecture: amd64
Date: Mon Oct 26 18:57:30 2009
DistroRelease: Ubuntu 9.10
NonfreeKernelModules: nvidia
Package: grep 2.5.4-4
ProcEnviron:
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-14.48-generic
SourcePackage: grep
Uname: Linux 2.6.31-14-generic x86_64
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grep/+bug/460985/+subscriptions
More information about the foundations-bugs
mailing list