On 01/20/2015 10:24 AM, Gary V. Vaughan wrote:

>     * gl/build-aux/bootstrap.in, gl/build-aux/extract-trace,
>     gl/build-aux/funclib.sh, gl/build-aux/options-parser: Sync with
>     upstream.

> @@ -2267,11 +2267,12 @@ func_tool_version_number ()
>  {
>      $debug_cmd
>  
> -    _G_verout=`func_tool_version_output "$@" |sed 1q`
> +    _G_verout=`func_tool_version_output "$@"`
>      _G_status=$?
>  
>      # A version number starts with a digit following a space on the first
>      # line of output from `--version`.
> +    _G_verout=`echo "$_G_verout" |sed 1q`

How probable is it that $_G_verout will ever be output captured from
some tool that includes \ in its output?  If so, you'd want to use
printf to make sure you don't run foul of a shell where \ is
interpolated by echo.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
https://lists.gnu.org/mailman/listinfo/libtool

Reply via email to