diff options
author | Tom de Vries <tom@codesourcery.com> | 2015-07-15 15:41:21 +0000 |
---|---|---|
committer | Tom de Vries <vries@gcc.gnu.org> | 2015-07-15 15:41:21 +0000 |
commit | 7392b0906f329b552ab6de61a2248f860acfcd7a (patch) | |
tree | efb81d7c02233d8bbda73ba494a9a2e307697c18 /contrib | |
parent | 6b8068d653b2fc19de7839d64fc6e19dc420dc30 (diff) | |
download | gcc-7392b0906f329b552ab6de61a2248f860acfcd7a.zip gcc-7392b0906f329b552ab6de61a2248f860acfcd7a.tar.gz gcc-7392b0906f329b552ab6de61a2248f860acfcd7a.tar.bz2 |
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.
From-SVN: r225837
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/ChangeLog | 4 | ||||
-rwxr-xr-x | contrib/check_GNU_style.sh | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/contrib/ChangeLog b/contrib/ChangeLog index 982ae6b..cd6e1c5 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 033a2c9..ac54ed0 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 } |