Re: [PATCH 1/4] Fix func_echo_all inside configure.

Eric Blake <[email protected]>
Newsgroups gmane.comp.gnu.libtool.patches
Organization Red Hat, Inc.
Message-ID <[email protected]>
On 03/10/2016 02:01 AM, Michael Haubenwallner wrote:
> * m4/libtool.m4 (func_echo_all): Properly get $* through m4.
> ---
>  m4/libtool.m4 | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/m4/libtool.m4 b/m4/libtool.m4
> index ee292af..7b8b591 100644
> --- a/m4/libtool.m4
> +++ b/m4/libtool.m4
> @@ -1218,7 +1218,7 @@ fi
>  # Invoke $ECHO with all args, space-separated.
>  func_echo_all ()
>  {
> -    $ECHO "$*"
> +    $ECHO "@S|@*"

That works.  You might also want to try $[]*, for less typing, and
comparable to what we have a few lines earlier:

    eval 'cat <<_LTECHO_EOF
$[]1
_LTECHO_EOF'
  }
  ECHO='func_fallback_echo'
fi

# func_echo_all arg...
# Invoke $ECHO with all args, space-separated.
func_echo_all ()
{
    $ECHO "$*"


-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc (application/pgp-signature, 604 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
Comment: Public key at http://people.redhat.com/eblake/eblake.gpg
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBCAAGBQJW4aR7AAoJEKeha0olJ0NqUxUIAIql5rwa4CKAvR8CnpagLOYb
2GdpABkgLvu9HoTNWtenjAPBopHDyAJV/+bGaAHqwi2LhK5SPXHSsiN0bn/bIfq5
+MRpW/Th9Uei35l8uGp5REould4d68hi9eISBylS5WF3jCtTWz2kgjYE0lL4LfG1
+TQdWawJoX6T4oxBMmK92GlPbBU8M9Rx9hHjDkCKMiv1qbJMc0vm0sPO+BMV1izE
2Q90j4WeiFbMG3x7eBP26RwrH4wkqIV0+CM8WTVPb+hFijrRl2PwGsJ3m9qashw6
9i+ZYS5yzH7KqmYpN18HeKa+2v2kGZsvx/0mObzU/h1tKo9dBa08yPctA6OiLZs=
=tGJb
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.