automake-patches
[Top][All Lists]
Advanced

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

Re: [PATCH] Modernize, improve and/or extend tests `colon*.test.


From: Stefano Lattarini
Subject: Re: [PATCH] Modernize, improve and/or extend tests `colon*.test.
Date: Sun, 8 Aug 2010 18:06:04 +0200
User-agent: KMail/1.13.3 (Linux/2.6.30-2-686; KDE/4.4.4; i686; ; )

At Sunday 08 August 2010, Ralf Wildenhues wrote:
> > > >   foo=`extract_makefile_deps tgt2 Makefile`; echo x"$foo"x
> > > 
> > > More or less, yes.  I'd avoid the command substitution fork by
> > > letting extract_makefile_deps set some variable instead of
> > > printing.
> > 
> > So the we'd have move the comamnd substitution inside the
> > function? ;-)
> 
> No.  You save a fork with
> 
>   foo ()
>   {
>     ...
>     foo_result=bar
>   }
> 
>   foo ARG...
>   test "$foo_result" = ...
>
Yes, but how do you get foo_result in our case? ;-)
 
> which we've been doing a lot in Libtool and Autoconf lately.
Yes, but using XSI variable substitutions and shell arithmetic, not 
complex sed scripts.

Or am I missing something?

Regards,
  Stefano



reply via email to

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