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: 2019-08-31 19:46 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


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.


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