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 - libtool --mode=execute breaks on multi-line parameters
Summary: libtool --mode=execute breaks on multi-line parameters
Keywords:
Status: ASSIGNED
Alias: None
Product: Fedora
Classification: Fedora
Component: libtool
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Patrik Novotný
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: TRACKER-bugs-affecting-libguestfs
TreeView+ depends on / blocked
 
Reported: 2017-02-08 11:57 UTC by Richard W.M. Jones
Modified: 2022-07-01 14:14 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.