summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorvries <vries@138bc75d-0d04-0410-961f-82ee72b054a4>2015-07-15 15:41:21 +0000
committervries <vries@138bc75d-0d04-0410-961f-82ee72b054a4>2015-07-15 15:41:21 +0000
commit816d218b70d367fbe15c530a752cd7f28a5df080 (patch)
treeefb81d7c02233d8bbda73ba494a9a2e307697c18 /contrib
parentb0e2a5e8ae65649cb2f30d97d2df403161b58973 (diff)
downloadgcc-816d218b70d367fbe15c530a752cd7f28a5df080.tar.gz
check_GNU_style.sh: Fix quoting in cat_with_prefix
2015-07-15 Tom de Vries <tom@codesourcery.com> * check_GNU_style.sh (cat_with_prefix): Fix quoting. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@225837 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'contrib')
-rw-r--r--contrib/ChangeLog4
-rwxr-xr-xcontrib/check_GNU_style.sh2
2 files changed, 5 insertions, 1 deletions
diff --git a/contrib/ChangeLog b/contrib/ChangeLog
index 982ae6b85c3..cd6e1c52f32 100644
--- a/contrib/ChangeLog
+++ b/contrib/ChangeLog
@@ -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.
diff --git a/contrib/check_GNU_style.sh b/contrib/check_GNU_style.sh
index 033a2c91b60..ac54ed070e7 100755
--- a/contrib/check_GNU_style.sh
+++ b/contrib/check_GNU_style.sh
@@ -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
}