* [committed] check_GNU_style.sh: Fix quoting in cat_with_prefix
@ 2015-07-15 16:45 Tom de Vries
0 siblings, 0 replies; only message in thread
From: Tom de Vries @ 2015-07-15 16:45 UTC (permalink / raw)
To: gcc-patches
[-- Attachment #1: Type: text/plain, Size: 53 bytes --]
Hi,
I've committed this obvious fix.
Thanks,
- Tom
[-- Attachment #2: 0001-check_GNU_style.sh-Fix-quoting-in-cat_with_prefix.patch --]
[-- Type: text/x-patch, Size: 529 bytes --]
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.
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
}
--
1.9.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-07-15 16:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-15 16:45 [committed] check_GNU_style.sh: Fix quoting in cat_with_prefix Tom de Vries
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).