From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-ob0-x22a.google.com ([2607:f8b0:4003:c01::22a]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1XCrjl-0003SD-PW for ptxdist@pengutronix.de; Thu, 31 Jul 2014 16:53:47 +0200 Received: by mail-ob0-f170.google.com with SMTP id wp4so1626364obc.15 for ; Thu, 31 Jul 2014 07:53:38 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <53D9FF7F.6020409@pengutronix.de> References: <53D79F97.9060804@pengutronix.de> <53D9FF7F.6020409@pengutronix.de> Date: Thu, 31 Jul 2014 16:53:38 +0200 Message-ID: From: Kristof Verdonck Subject: Re: [ptxdist] configure failed with sed version 4.2.2 Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============2032748644==" Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist --===============2032748644== Content-Type: multipart/alternative; boundary=001a11332c8e12f5be04ff7e7004 --001a11332c8e12f5be04ff7e7004 Content-Type: text/plain; charset=UTF-8 You're absolutely right. The double '[' got me. 2014-07-31 10:34 GMT+02:00 Marc Kleine-Budde : > On 07/29/2014 04:39 PM, Kristof Verdonck wrote: > > I'm using an ancient ptxdist, but that doesn't matter because I'm > > isolating the SED-version check. > > > > If I run the regex > > from > http://git.pengutronix.de/?p=ptxdist.git;a=blob;f=configure.ac;h=22c8df03a8c225514a3df7ba4c9fb29c515c3e24;hb=HEAD > > sed --version 2>/dev/null | sed -ne "1 > s/.*GNU.*\s\([[0-9\+\.]]\+\).*/\1/p" > > then it returns empty, both with sed 4.2.1 and 4.2.2. > > Are you using the unmodified regex from the configure.ac in the shell? > > Try this instead: > > sed --version 2>/dev/null | \ > sed -ne "1 s/.*GNU.*\s\([0-9\+\.]\+\).*/\1/p" > > Note: '[' vs. '[[', as you have to quote '[' in configure.ac, as it's > processed by m4. > > Marc > > -- > Pengutronix e.K. | Marc Kleine-Budde | > Industrial Linux Solutions | Phone: +49-231-2826-924 | > Vertretung West/Dortmund | Fax: +49-5121-206917-5555 | > Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de | > > > -- > ptxdist mailing list > ptxdist@pengutronix.de > > --001a11332c8e12f5be04ff7e7004 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
You're absolutely right.
The double '[' got= me.


2014-= 07-31 10:34 GMT+02:00 Marc Kleine-Budde <mkl@pengutronix.de>:
On 07/29/2014 04:39 PM, Kris= tof Verdonck wrote:
> I'm using an ancient ptxdist, but that doesn't matter because = I'm
> isolating the SED-version check.
>
> If I run the regex
> from http://git.pengutronix.de/?p=3Dptxdist.git;a=3Dblob;f=3Dconf= igure.ac;h=3D22c8df03a8c225514a3df7ba4c9fb29c515c3e24;hb=3DHEAD
> sed --version 2>/dev/null | sed -ne "1 s/.*GNU.*\s\([[0-9\+\.]= ]\+\).*/\1/p"
> then it returns empty, both with sed 4.2.1 and 4.2.2.

Are you using the unmodified regex from the configure.ac in the shell?

Try this instead:

=C2=A0 =C2=A0 sed --version 2>/dev/null | \
=C2=A0 =C2=A0 =C2=A0 =C2=A0 sed -ne "1 s/.*GNU.*\s\([0-9\+\.]\+\).*/\1= /p"

Note: '[' vs. '[[', as you have to quote '[' = in configure.ac, as i= t's
processed by m4.

Marc

--
Pengutronix e.K. =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0| Marc Kleine-Budde =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 |
Industrial Linux Solutions =C2=A0 =C2=A0 =C2=A0 =C2=A0| Phone: +49-231-2826-924 =C2=A0 = =C2=A0 |
Vertretung West/Dortmund =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0| Fax: =C2=A0 +49-5121-2= 06917-5555 |
Amtsgericht Hildesheim, HRA 2686 =C2=A0| http://www.pengutronix.de =C2=A0 |


--
ptxdist mailing list
ptxdist@pengutronix.de


--001a11332c8e12f5be04ff7e7004-- --===============2032748644== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- ptxdist mailing list ptxdist@pengutronix.de --===============2032748644==--