automake-patches
[Top][All Lists]
Advanced

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

Re: * tests/amhello-binpkg.test: Add missing $EXEEXT usage.


From: Stefano Lattarini
Subject: Re: * tests/amhello-binpkg.test: Add missing $EXEEXT usage.
Date: Mon, 5 Sep 2011 18:29:08 +0200
User-agent: KMail/1.13.7 (Linux/2.6.30-2-686; KDE/4.6.5; i686; ; )

On Monday 05 September 2011, Peter Rosin wrote:
> Den 2011-09-05 11:37 skrev Stefano Lattarini:
> > Ouch!  Silly me for not thinking about that.
> 
> And the quoting was off too, should have been s/\./\\\\./g to
> do what you intended...         :-)
> 
Double ouch, you're right again!

  $ x=`echo a.b | sed 's/\./\\./g'`; printf '%s\n' "$x"
  a.b

I should really give up attemping to understand how the `\' escaping
works inside backticks... I've been burned so many times, sigh... :-(

And maybe it's about time to write a configure check that looks for a
POSIX shell, so that we can run our tests with it and dispense with
the clumsy workarounds for exotic bugs and limitations; most of the
framework is already in place anyway (e.g., automatic re-execing of
tests with the configure-time shell), so that shouldn't be too
difficult.  But I'm cooking another patch right now, so this will
have to wait.

> Pushed now, thanks for looking!
>

Regards,
  Stefano


reply via email to

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