]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
libtool: allow tabs in *_cmds variables
authorPeter Rosin <peda@lysator.liu.se>
Mon, 21 Jan 2013 05:41:00 +0000 (06:41 +0100)
committerPeter Rosin <peda@lysator.liu.se>
Mon, 21 Jan 2013 05:41:00 +0000 (06:41 +0100)
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 <peda@lysator.liu.se>
build-aux/ltmain.in

index c8cdb9c9be7eab79ed537c2e58dcda317f3cb6b0..d964dc7bd96937ed967cd11a5dd0f7b53464679c 100644 (file)
@@ -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"