Your message dated Wed, 18 Jun 2014 15:52:01 +0200
with message-id <20140618135200.GA20518@nomada>
and subject line grep: Closing 466292. {,m} working
has caused the Debian Bug report #466292,
regarding grep: repetition {,m} not working
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
466292: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=466292
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: grep
Version: 2.5.3~dfsg-3
Severity: normal
I was testing the repetition on grep
all working except {,m}
In the manual appear
{,m} The preceding item is matched at most m times.
but i used in didn't work
Here's a little test
echo 1 11 111 1111 | grep '[0-9]\{,2\}'
grep: contador de repetición erróneo
-- System Information:
Debian Release: lenny/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.22-3-486
Locale: LANG=es_MX.UTF-8, LC_CTYPE=es_MX.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages grep depends on:
ii libc6 2.7-6 GNU C Library: Shared libraries
grep recommends no packages.
-- no debconf information
--- End Message ---
--- Begin Message ---
Version: 2.15-1
Hi,
The grep's {,m} repetition now does work:
$ echo 1 11 111 1111 | grep '[0-9]\{,2\}'
1 11 111 1111
Also, manpage clarifies it's a GNU extension. So I'm closing this bug.
Regards,
Santiago
--- End Message ---