Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1420301

Summary: libtool --mode=execute breaks on multi-line parameters
Product: [Fedora] Fedora Reporter: Richard W.M. Jones <rjones>
Component: libtoolAssignee: Patrik Novotný <panovotn>
Status: ASSIGNED --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: praiskup, rhbugs
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 910269    

Description Richard W.M. Jones 2017-02-08 11:57:43 UTC
Description of problem:

Normal commands work fine with multi-line parameters, eg:

$ echo "hello
> world"
hello
world

but libtool --mode=execute breaks them:

$ libtool --mode=execute echo "hello
world"
/usr/bin/libtool: line 2062: world: command not found
hello

Version-Release number of selected component (if applicable):

libtool (GNU libtool) 2.4.6
libtool-2.4.6-13.fc25.x86_64

How reproducible:

100%

Steps to Reproduce:
1. See above.

Comment 1 Pavel Raiskup 2017-02-08 13:06:33 UTC
Richard, thanks for the report.

This must be fixed upstream first, and note the comment upstream:
https://github.com/gnulib-modules/bootstrap/blob/master/tests/test-funclib-quote.sh#L143
IOW, libtool uses 'func_quote*' and 'func_append_quoted' which is not working
with newlines correctly.

This is unfortunately very unlikely to get 100% fixed (no portable way),
but there is one non-portable upstream fix-in-progress with bash's
'printf %q' which is going to be in new libtool release.  The point is
that --mode=execute is not covered yet.  So good to know, thanks again.

Comment 2 Fedora Admin user for bugzilla script actions 2021-07-01 15:31:25 UTC
This package has changed maintainer in Fedora. Reassigning to the new maintainer of this component.

Comment 3 Fedora Admin user for bugzilla script actions 2022-07-01 14:14:54 UTC
This package has changed maintainer in Fedora. Reassigning to the new maintainer of this component.