Re: [alpine-devel] Re: xzdiff in xz package is broken on alpine linux
On Mon, 29 Jun 2015 10:07:59 -0700
Michael Fox <415fox_at_gmail.com> wrote:
> CC xz maintainer whose email I got wrong the first time
> On Mon, Jun 29, 2015 at 8:27 AM, Michael Fox <415fox_at_gmail.com> wrote:
> > I found this by running make check. It's probably due to xzdiff being a
> > shell script with some hair regexs and musl having some regex
> > incompatibilities in the name of standards compliance.
> > Another one that bit me today was in a script with
> > grep '^[a-z]\+'
\+ is a gnu extension and not a posix Basic Regular Expression (BRE).
You cannot expect those work anywhere except with GNU.
> > On alpine you need to say
> > grep '^[a-z]+'
You need -E for extended regepx (ERE):
grep -E '^[a-z]+'
That should be portable.
Received on Tue Jun 30 2015 - 16:22:41 GMT