From: Peter Rosin Date: Mon, 21 Jan 2013 05:41:00 +0000 (+0100) Subject: libtool: allow tabs in *_cmds variables X-Git-Tag: v2.4.2.418~55 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=726bf31ced115a9c21470c340ef7fda2f2992544;p=thirdparty%2Flibtool.git libtool: allow tabs in *_cmds variables This is in preparation for the next patch, which needs to have literal tab characters survive the evaluation of the *_cmds variables. build-aux/ltmain.in (func_execute_cmds, func_mode_link): Don't collapse tabs and surrounding whitespace into a single space when executing a tilde-separated cmds construct, instead keep any tabs intact. Signed-off-by: Peter Rosin --- diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in index c8cdb9c9b..d964dc7bd 100644 --- a/build-aux/ltmain.in +++ b/build-aux/ltmain.in @@ -656,8 +656,9 @@ func_execute_cmds () save_ifs=$IFS; IFS='~' for cmd in $1; do - IFS=$save_ifs + IFS=$sp$nl eval cmd=\"$cmd\" + IFS=$save_ifs func_show_eval "$cmd" "${2-:}" done IFS=$save_ifs @@ -7964,8 +7965,9 @@ EOF save_ifs=$IFS; IFS='~' for cmd in $cmds; do - IFS=$save_ifs + IFS=$sp$nl eval cmd=\"$cmd\" + IFS=$save_ifs $opt_quiet || { func_quote_for_expand "$cmd" eval "func_echo $func_quote_for_expand_result"