Bug 1420301

Summary: libtool --mode=execute breaks on multi-line parameters
Product: [Fedora] Fedora Reporter: Richard W.M. Jones <rjones>
Component: libtoolAssignee: Ondrej Dubaj <odubaj>
Status: CLOSED WONTFIX 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: 2021-10-06 11:47:12 UTC 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 Ondrej Dubaj 2021-10-06 11:47:12 UTC
According to the low priority of this request and as it did not bother any user for years, I am closing this tracker. If you think this issue should be handled and investigated, feel free to reopen it.