From 726bf31ced115a9c21470c340ef7fda2f2992544 Mon Sep 17 00:00:00 2001 From: Peter Rosin Date: Mon, 21 Jan 2013 06:41:00 +0100 Subject: [PATCH] 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 --- build-aux/ltmain.in | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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" -- 2.47.3