[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Use pipe and sed in

From: Ralf Wildenhues
Subject: Re: Use pipe and sed in
Date: Thu, 10 Feb 2011 20:05:24 +0100
User-agent: Mutt/1.5.20 (2010-08-04)

Hello Lyre,

* Lyre wrote on Thu, Feb 10, 2011 at 04:39:41AM CET:
> php-config --configure-options | sed -n
> 's|.*--with-config-file-scan-dir=\([^ ]*\).*|\1|p'
> It works on shell, and outputs "/etc/php5/conf.d/" on opensuse.
> And I tired it in, as following:
> PHPCDIR=`php-config --configure-options | sed -n
> 's|.*--with-config-file-scan-dir=\([^ ]*\).*|\1|p'`

> After subsitution in Makefile, the PHPCDIR is empty´╝î meanwhile PHPINC get
> the correct result.

Probably, m4 eat your [ ] as they are also m4 quotes.  To safely protect
them from m4, replace them with @<:@ and @:>@, respectively.  See "info
Autoconf Quadrigraphs".


reply via email to

[Prev in Thread] Current Thread [Next in Thread]