summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2005-06-16 21:37:37 +0000
committerJim Meyering <jim@meyering.net>2005-06-16 21:37:37 +0000
commitf696c57a8ee46a7df82f860275b88fb329740e69 (patch)
tree37bbda4d602d8d9a910f7a1af5bf3eb957640184 /src
parentf07a234d1d0fad264b2e3653223740a25fc964f5 (diff)
downloadcoreutils-f696c57a8ee46a7df82f860275b88fb329740e69.tar.xz
Don't embed `this'-style quotes in format strings.
Include "quote.h". Rather than this: error (..., "...`%s'...", arg); do this: error (..., "...%s...", quote (arg));
Diffstat (limited to 'src')
-rw-r--r--src/expr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/expr.c b/src/expr.c
index a0982f85d..1c245b832 100644
--- a/src/expr.c
+++ b/src/expr.c
@@ -37,6 +37,7 @@
#include "long-options.h"
#include "error.h"
#include "inttostr.h"
+#include "quote.h"
#include "quotearg.h"
#include "strnumcmp.h"
#include "xstrtol.h"
@@ -423,7 +424,7 @@ docolon (VALUE *sv, VALUE *pv)
error (0, 0, _("\
warning: unportable BRE: `%s': using `^' as the first character\n\
of the basic regular expression is not portable; it is being ignored"),
- pv->u.s);
+ quote (pv->u.s));
}
len = strlen (pv->u.s);