Groups | Search | Server Info | Keyboard shortcuts | Login | Register
Groups > gnu.utils.bug > #2226
| From | Bob Proulx <bob@proulx.com> |
|---|---|
| Newsgroups | gnu.utils.bug |
| Subject | Re: Bug of grep -E |
| Date | 2017-12-06 11:31 -0700 |
| Message-ID | <mailman.5241.1512585121.27995.bug-gnu-utils@gnu.org> (permalink) |
| References | <tencent_33C2D0CF6BB7A5EA5B8D5D4EDFAB5894320A@qq.com> |
iPack wrote:
> [urain39@urain39-pc ~]$ cat test | grep -Eo '[0-9a-f]{32}/[0-9A-Za-z\-%_\.]+'
> a4ff5caad2fa35faa2271df9badacd35/Konachan.com%20
>
> It is bug ? or just my syntax error ?
Recent versions of grep (at least on my Debian system) report this as
an invalid expression for the reasons already noted by others. Here
using your verbatim pattern (with the invalid \- \. escaping):
$ grep -Eo '[0-9a-f]{32}/[0-9A-Za-z\-%_\.]+' /dev/null
grep: Invalid range end
Updating would add this improved validation reporting capability. :-)
Bob
Back to gnu.utils.bug | Previous | Next | Find similar
Re: Bug of grep -E Bob Proulx <bob@proulx.com> - 2017-12-06 11:31 -0700
csiph-web