check_GNU_style.sh: Fix quoting in cat_with_prefix
authorTom de Vries <tom@codesourcery.com>
Wed, 15 Jul 2015 15:41:21 +0000 (15:41 +0000)
committerTom de Vries <vries@gcc.gnu.org>
Wed, 15 Jul 2015 15:41:21 +0000 (15:41 +0000)
2015-07-15  Tom de Vries  <tom@codesourcery.com>

* check_GNU_style.sh (cat_with_prefix): Fix quoting.

From-SVN: r225837

contrib/ChangeLog
contrib/check_GNU_style.sh

index 982ae6b..cd6e1c5 100644 (file)
@@ -1,3 +1,7 @@
+2015-07-15  Tom de Vries  <tom@codesourcery.com>
+
+       * check_GNU_style.sh (cat_with_prefix): Fix quoting.
+
 2015-06-02  Steve Ellcey  <sellcey@imgtec.com>
 
        * test_installed (--target=): New option.
index 033a2c9..ac54ed0 100755 (executable)
@@ -89,7 +89,7 @@ cat_with_prefix ()
     if [ "$prefix" = "" ]; then
        cat "$f"
     else
-       awk "{printf "%s%s\n", $prefix, \$0}" $f
+       awk "{printf \"%s%s\n\", \"$prefix\", \$0}" $f
     fi
 }