Re: zgrep - doesn't work if is two digits or greater

2012-08-14 Thread Paul Eggert
On 08/07/2012 10:24 AM, Jim Meyering wrote: > +if expr "X$option" : 'X-[0-9]\+$' > /dev/null; then This part of the patch is not portable, since '\+' is a GNU extension, and its behavior isn't specified by POSIX. To fix this I installed the following zgrep.in patch. This diff is relative to t

Re: zgrep - doesn't work if is two digits or greater

2012-08-14 Thread Jim Meyering
Paul Eggert wrote: > On 08/07/2012 10:24 AM, Jim Meyering wrote: >> +if expr "X$option" : 'X-[0-9]\+$' > /dev/null; then > > This part of the patch is not portable, since '\+' is > a GNU extension, and its behavior isn't specified by POSIX. Indeed. I have to be careful about my reflexes. I'm