summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog-200984
-rw-r--r--HACKING4
-rw-r--r--NEWS42
-rw-r--r--README-hacking2
-rw-r--r--cfg.mk4
-rw-r--r--configure.ac2
-rw-r--r--doc/grep.texi2
-rw-r--r--lib/colorize-w32.c2
-rw-r--r--m4/pcre.m43
-rw-r--r--src/Makefile.am2
-rw-r--r--src/dfa.c36
-rw-r--r--src/dosbuf.c2
-rw-r--r--src/main.c8
-rwxr-xr-xtests/backref4
-rwxr-xr-xtests/help-version12
-rw-r--r--tests/tests4
16 files changed, 107 insertions, 106 deletions
diff --git a/ChangeLog-2009 b/ChangeLog-2009
index 894891bc..fac59ff6 100644
--- a/ChangeLog-2009
+++ b/ChangeLog-2009
@@ -994,7 +994,7 @@
2005-01-07 Stepan Kasal <kasal@ucw.cz>
- * tests/status.sh: Added two tests--option `-s' should have no
+ * tests/status.sh: Added two tests--option '-s' should have no
influence on the exit status.
2004-12-16 Stepan Kasal <kasal@ucw.cz>
@@ -1028,8 +1028,8 @@
2004-12-01 Stepan Kasal <kasal@ucw.cz>
- * src/grep.c (usage): Use ``FILE_PATTERN'' for --include and --exclude,
- change ``only print'' to ``print only''.
+ * src/grep.c (usage): Use "FILE_PATTERN" for --include and --exclude,
+ change "only print" to "print only".
* doc/grep.1: Likewise; state that wildcard matching is used.
Move some options so that they are sorted alphabetically.
* dfa.c, NEWS: Fix typos.
@@ -1052,9 +1052,9 @@
2004-11-23 Stepan Kasal <kasal@ucw.cz>
- * src/grep.c (usage): Make sure both copies of the ``usage''
- strings match. Add ``(C)'' to the copyright notice.
- * src/dfa.c: Changed ``out of memory'' to ``memory exhausted'' to
+ * src/grep.c (usage): Make sure both copies of the "usage"
+ strings match. Add "(C)" to the copyright notice.
+ * src/dfa.c: Changed "out of memory" to "memory exhausted" to
match messages elsewhere in the source.
2004-11-22 Stepan Kasal <kasal@ucw.cz>
@@ -1081,7 +1081,7 @@
2004-11-20 Stepan Kasal <kasal@ucw.cz>
* configure.in: Added a copyright notice (using gawk as a template).
- (AC_INIT, AM_INIT_AUTOMAKE): Changed to the ``new'' form so that
+ (AC_INIT, AM_INIT_AUTOMAKE): Changed to the "new" form so that
the PACKAGE_* symbols get defined correctly in config.h.
2004-11-20 Stepan Kasal <kasal@ucw.cz>
@@ -1108,7 +1108,7 @@
* tests/spencer1.awk: Use only lines with 3 fields.
* tests/spencer1.tests: Disable #55 for now.
- * tests/ere.tests, tests/bre.tests: Add ``TO CORRECT'' to disabled
+ * tests/ere.tests, tests/bre.tests: Add "TO CORRECT" to disabled
tests which had empty $4.
* tests/backref.sh: Modify #2 so that current glibc regex can
handle it in finite time.
@@ -1116,7 +1116,7 @@
2004-11-12 Stepan Kasal <kasal@ucw.cz>
Change bug-gnu-utils address to bug-grep, on many places; there
- is no need to have the word ``grep'' in subject then.
+ is no need to have the word "grep" in subject then.
Thanks to Tony Abou-Assaleh and Benno Schulenberg for pointing
out this.
@@ -1129,7 +1129,7 @@
* src/search.c (check_multibyte_string, Gcompile, Ecompile): Replace
malloc with xmalloc.
- * src/dfa.c (dfamust): Replace two calls to ``malloc'' by MALLOC.
+ * src/dfa.c (dfamust): Replace two calls to 'malloc' by MALLOC.
2003-07-23 Stepan Kasal <kasal@ucw.cz>
@@ -1142,7 +1142,7 @@
* src/dfa.c: remove non-constant initializers from dfa.c
2003-06-16 Stepan Kasal <kasal@ucw.cz>
- * doc/grep.1: two typos ``--line-buffered [...] penalty''
+ * doc/grep.1: two typos "--line-buffered [...] penalty"
* doc/grep.texi: a typo
2003-06-12 Bernhard Rosenkraenzer <bero@arklinux.org>
@@ -1515,11 +1515,11 @@
2001-03-01 Isamu Hasegawa
Implement the mechanism to match with multibyte characters,
- and use it for `period' in multibyte environments.
+ and use it for 'period' in multibyte environments.
* dfa.h (mbps): new variable.
* dfa.c (prtok): handle ANYCHAR.
- (lex): use ANYCHAR for `period' in multibyte environments.
+ (lex): use ANYCHAR for 'period' in multibyte environments.
(atom): handle ANYCHAR.
(state_index): initialize mbps in multibyte environments.
(epsclosure): handle ANYCHAR.
@@ -2166,7 +2166,7 @@
2000-03-03 Jim Meyering
- * regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
+ * regex.m4: Make sure re_compile_pattern accepts patterns like '{1'.
2000-03-02 Alain Magloire
@@ -2474,13 +2474,13 @@
1999-10-02 Paul Eggert
- * NEWS: egrep is now equivalent to `grep -E'.
+ * NEWS: egrep is now equivalent to 'grep -E'.
The lower bound of an interval is not optional.
You can specify a matcher multiple types without error.
-u and -U are now allowed on non-DOS hosts, and have no effect.
* doc/grep.texi: Likewise.
* doc/grep.1: Likewise.
- Fix some troff bugs that prevented `groff' from rendering the page.
+ Fix some troff bugs that prevented 'groff' from rendering the page.
* src/egrepmat.c, src/fgrepmat.c, src/grepmat.c (default_matcher):
Remove.
@@ -2545,9 +2545,9 @@
allocate only for regular files, since we don't know the sizes of
other files.
Don't bother to check whether the file offset is a multiple of the page
- size, since we now do that just once in `reset'.
+ size, since we now do that just once in 'reset'.
When an mmapped area would fall past the end of the file, trim it to
- just before instead of giving up immediately and doing a `read';
+ just before instead of giving up immediately and doing a 'read';
that avoids a worst-case behavior that could read half an mmapped file.
Fix bug when computing offsets on hosts that don't have mmap.
@@ -2570,7 +2570,7 @@
Don't assume that st_ino and st_dev must be integers;
POSIX.1 allows them to be floating-point (!).
- * src/vms_fab.h (arr_ptr): `:' -> `;' to fix typo.
+ * src/vms_fab.h (arr_ptr): ':' -> ';' to fix typo.
1999-08-18 Alain Magloire
@@ -2616,15 +2616,15 @@
1999-07-26 Paul Eggert
-Several GNU tools have options to process arbitrary file names, even
-file names that contain newline characters. These include `find
--print0', `perl -0', `sort -z', and `xargs -0'. It'd be handy if GNU
-grep also processed such file names. Here's a proposed patch to do
-this, relative to grep 2.3c. This patch introduces two options, one
-for the data, and one for the file names. (Sometimes one wants
-null-terminated file names in the output, and sometimes one wants to
-process lists of null-terminated strings, and these are orthogonal
-axes.)
+ Several GNU tools have options to process arbitrary file names, even
+ file names that contain newline characters. These include 'find
+ -print0', 'perl -0', 'sort -z', and 'xargs -0'. It'd be handy if GNU
+ grep also processed such file names. Here's a proposed patch to do
+ this, relative to grep 2.3c. This patch introduces two options, one
+ for the data, and one for the file names. (Sometimes one wants
+ null-terminated file names in the output, and sometimes one wants to
+ process lists of null-terminated strings, and these are orthogonal
+ axes.)
* NEWS, doc/grep.texi: New -z or --null-data and -Z or --null options.
* src/grep.c (long_options, usage, main): Likewise.
@@ -2807,7 +2807,7 @@ axes.)
* intl/Makefile.in: Replace .o with .${ac_objext} where necessary.
Work around a limitation of Visual C++ on Cygwin32.
- * acconfig.h configure.in: Define `alloca' as `_alloca' when CC=cl.
+ * acconfig.h configure.in: Define 'alloca' as '_alloca' when CC=cl.
This little hack was suggested by Ian Roxborough <irox@cygnus.com>.
Patch forwarded by Ben Elliston.
@@ -2925,10 +2925,10 @@ axes.)
* doc/grep.texi: I found and corrected several typos.
I believe the GNU standards require the section that describes the
- options to the programs to be called ``Invoking'' or ``Invoking
- <program-name>''. This is so users and programs can easily find
+ options to the programs to be called "Invoking" or "Invoking
+ <program-name>". This is so users and programs can easily find
that node in any Info file. So I changed the name of the
- `Options' chapter to `Invoking', and corrected the
+ "Options" chapter to "Invoking", and corrected the
cross-references accordingly.
I added some markup to things like file names and options.
I added some additional index entries where that seemed useful.
@@ -3005,8 +3005,8 @@ axes.)
the console device.
(is_EISDIR): Don't define if already defined. Accept a second
argument, the file name; all callers changed.
- (grepdir): Don't free `file', inside the loop. Use IS_SLASH to
- check whether `dir' needs a slash.
+ (grepdir): Don't free 'file', inside the loop. Use IS_SLASH to
+ check whether 'dir' needs a slash.
(grepfile): If file is a directory, set e to EISDIR.
1998-11-10 Alain Magloire
@@ -3024,7 +3024,7 @@ axes.)
1998-11-09 Paul Eggert
- * src/grep.1: Fix `Last Change' of output by generating the date
+ * src/grep.1: Fix "Last Change" of output by generating the date
from the RCS Id.
* src/grep.c (is_EISDIR): New macro.
@@ -3059,7 +3059,7 @@ axes.)
1998-11-08 Alain Magloire
- * src/grep.1: `prep.ai.mit.edu' should be replaced with `gnu.org'.
+ * src/grep.1: 'prep.ai.mit.edu' should be replaced with 'gnu.org'.
Nit from Paul Eggert.
1998-11-06 Alain Magloire
@@ -3127,7 +3127,7 @@ axes.)
(reset): Initialize it.
(fillbuf): Use it.
(count_matches, list_files, no_filenames, suppress_errors): New static
- vars; formerly were local to `main'.
+ vars; formerly were local to 'main'.
(grep): Recurse through directories if the user asks for this.
(usage, main): Add new options.
(main): Change some local vars to be static, as described above.
@@ -3156,14 +3156,14 @@ axes.)
(reset): Now returns value specifying whether to skip this file.
Stat the file if either mmap or directory-skipping is possible.
Skip the file if it's a directory and we're skipping directories.
- (grep): Skip the file if `reset' tells us to.
+ (grep): Skip the file if 'reset' tells us to.
(main): If open fails because the file is a directory, and if we're
skipping directories, don't report an error.
Remove special case for DOS and Windows.
* src/dosbuf.c (guess_type): Use the same method for guessing whether a
file is binary as grep.c's grep does.
- There's no longer any need to declare `bp' to be unsigned.
+ There's no longer any need to declare 'bp' to be unsigned.
1998-04-26 Alain Magloire
@@ -3184,7 +3184,7 @@ axes.)
1998-04-17 Kaveh R. Ghazi
- * src/dfa.h: Don't define `const', trust autoconf to handle it.
+ * src/dfa.h: Don't define 'const', trust autoconf to handle it.
1998-04-16 Alain Magloire
@@ -3332,7 +3332,7 @@ axes.)
Remove the "matching a single character".
Suggested by Harald Hanche-Olsen.
- * src/grep.c (main): `-f /dev/null' now specifies no patterns
+ * src/grep.c (main): '-f /dev/null' now specifies no patterns
and therfore matches nothing.
Reported by Jorge Stolfi.
Patched by Paul Eggert.
@@ -3507,7 +3507,7 @@ axes.)
1997-07-17 Alain Magloire <alainm@rcsm.ee.mcgill.ca>
- * src/grep.c: Cause grep to fail if `fclose (stdout)' fails.
+ * src/grep.c: Cause grep to fail if 'fclose (stdout)' fails.
From Jim Meyering <meyering@eng.ascend.com>.
* grep.c:usage() more consistency in the --help.
diff --git a/HACKING b/HACKING
index be399050..6d21d0f7 100644
--- a/HACKING
+++ b/HACKING
@@ -593,5 +593,5 @@ Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.3 or
any later version published by the Free Software Foundation; with no
Invariant Sections, with no Front-Cover Texts, and with no Back-Cover
-Texts. A copy of the license is included in the ``GNU Free
-Documentation License'' file as part of this distribution.
+Texts. A copy of the license is included in the "GNU Free
+Documentation License" file as part of this distribution.
diff --git a/NEWS b/NEWS
index 9bd7e67c..1497b926 100644
--- a/NEWS
+++ b/NEWS
@@ -420,13 +420,13 @@ Version 2.4.1
Version 2.4:
- - egrep is now equivalent to `grep -E' as required by POSIX,
+ - egrep is now equivalent to 'grep -E' as required by POSIX,
removing a longstanding source of confusion and incompatibility.
- `grep' is now more forgiving about stray `{'s, for backward
+ 'grep' is now more forgiving about stray '{'s, for backward
compatibility with traditional egrep.
- The lower bound of an interval is not optional.
- You must use an explicit zero, e.g. `x{0,10}' instead of `x{,10}'.
+ You must use an explicit zero, e.g. 'x{0,10}' instead of 'x{,10}'.
(The old documentation incorrectly claimed that it was optional.)
- The --revert-match option has been renamed to --invert-match.
@@ -438,15 +438,15 @@ Version 2.4:
- New option --mmap. By default, GNU grep now uses read instead of mmap.
This is faster on some hosts, and is safer on all.
- - The new option -z or --null-data causes `grep' to treat a zero byte
+ - The new option -z or --null-data causes 'grep' to treat a zero byte
(the ASCII NUL character) as a line terminator in input data, and
to treat newlines as ordinary data.
- - The new option -Z or --null causes `grep' to output a zero byte
+ - The new option -Z or --null causes 'grep' to output a zero byte
instead of the normal separator after a file name.
- - These two options can be used with commands like `find -print0',
- `perl -0', `sort -z', and `xargs -0' to process arbitrary file names,
+ - These two options can be used with commands like 'find -print0',
+ 'perl -0', 'sort -z', and 'xargs -0' to process arbitrary file names,
even those that contain newlines.
- The environment variable GREP_OPTIONS specifies default options;
@@ -454,7 +454,7 @@ Version 2.4:
behavior of silently skipping directories.
- You can specify a matcher multiple times without error, e.g.
- `grep -E -E' or `fgrep -F'. It is still an error to specify
+ 'grep -E -E' or 'fgrep -F'. It is still an error to specify
conflicting matchers.
- -u and -U are now allowed on non-DOS hosts, and have no effect.
@@ -471,26 +471,26 @@ Version 2.4:
Version 2.3:
- When searching a binary file FOO, grep now just reports
- `Binary file FOO matches' instead of outputting binary data.
+ "Binary file FOO matches" instead of outputting binary data.
This is typically more useful than the old behavior,
- and it is also more consistent with other utilities like `diff'.
+ and it is also more consistent with other utilities like 'diff'.
A file is considered to be binary if it contains a NUL (i.e. zero) byte.
- The new -a or --text option causes `grep' to assume that all
- input is text. (This option has the same meaning as with `diff'.)
+ The new -a or --text option causes 'grep' to assume that all
+ input is text. (This option has the same meaning as with 'diff'.)
Use it if you want binary data in your output.
- - `grep' now searches directories just like ordinary files; it no longer
+ - 'grep' now searches directories just like ordinary files; it no longer
silently skips directories. This is the traditional behavior of
- Unix text utilities (in particular, of traditional `grep').
- Hence `grep PATTERN DIRECTORY' should report
- `grep: DIRECTORY: Is a directory' on hosts where the operating system
+ Unix text utilities (in particular, of traditional 'grep').
+ Hence 'grep PATTERN DIRECTORY' should report
+ "grep: DIRECTORY: Is a directory" on hosts where the operating system
does not permit programs to read directories directly, and
- `grep: DIRECTORY: Binary file matches' (or nothing) otherwise.
+ "grep: DIRECTORY: Binary file matches" (or nothing) otherwise.
The new -d ACTION or --directories=ACTION option affects directory handling.
- `-d skip' causes `grep' to silently skip directories, as in grep 2.1;
- `-d read' (the default) causes `grep' to read directories if possible,
+ '-d skip' causes 'grep' to silently skip directories, as in grep 2.1;
+ '-d read' (the default) causes 'grep' to read directories if possible,
as in earlier versions of grep.
- The MS-DOS and Microsoft Windows ports now behave identically to the
@@ -579,5 +579,5 @@ Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.3 or
any later version published by the Free Software Foundation; with no
Invariant Sections, with no Front-Cover Texts, and with no Back-Cover
-Texts. A copy of the license is included in the ``GNU Free
-Documentation License'' file as part of this distribution.
+Texts. A copy of the license is included in the "GNU Free
+Documentation License" file as part of this distribution.
diff --git a/README-hacking b/README-hacking
index 0fc66bf0..7b4970d9 100644
--- a/README-hacking
+++ b/README-hacking
@@ -18,7 +18,7 @@ Valgrind <http://valgrind.org/> is also highly recommended, if
Valgrind supports your architecture. See also README-valgrind.
While building from a just-cloned source tree may require installing a
-few prerequisites, later, a plain `git pull && make' should be sufficient.
+few prerequisites, later, a plain 'git pull && make' should be sufficient.
* First GIT checkout
diff --git a/cfg.mk b/cfg.mk
index e277ccb9..4949d3b7 100644
--- a/cfg.mk
+++ b/cfg.mk
@@ -51,9 +51,9 @@ export VERBOSE = yes
# 1127556 9e
export XZ_OPT = -6e
-old_NEWS_hash = f36c60cbfbb397ed4ebd24ea0ef93261
+old_NEWS_hash = 4161c68bdef85693cf836ee31ba9a3f9
-# Many m4 macros names once began with `jm_'.
+# Many m4 macros names once began with 'jm_'.
# Make sure that none are inadvertently reintroduced.
sc_prohibit_jm_in_m4:
@grep -nE 'jm_[A-Z]' \
diff --git a/configure.ac b/configure.ac
index d681dc32..dc1e5821 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,5 +1,5 @@
dnl
-dnl autoconf input file for ``GNU grep''
+dnl autoconf input file for GNU grep
dnl
dnl Copyright (C) 1997-2006, 2009-2012 Free Software Foundation, Inc.
dnl
diff --git a/doc/grep.texi b/doc/grep.texi
index 000a8446..3b52a191 100644
--- a/doc/grep.texi
+++ b/doc/grep.texi
@@ -261,7 +261,7 @@ for bold red matched text, magenta file names, green line numbers,
green byte offsets, cyan separators, and default terminal colors otherwise.
The deprecated environment variable @env{GREP_COLOR} is still supported,
but its setting does not have priority;
-it defaults to `01;31' (bold red)
+it defaults to @samp{01;31} (bold red)
which only covers the color for matched text.
@var{WHEN} is @samp{never}, @samp{always}, or @samp{auto}.
diff --git a/lib/colorize-w32.c b/lib/colorize-w32.c
index 7341fe20..3fcd317c 100644
--- a/lib/colorize-w32.c
+++ b/lib/colorize-w32.c
@@ -173,7 +173,7 @@ print_start_colorize (char const *sgr_start, char const *sgr_seq)
/* Clear to the end of the current line with the default attribute.
This is needed for reasons similar to those that require the "EL to
Right after SGR" operation on Posix platforms: if we don't do this,
- setting the `mt', `ms', or `mc' capabilities to use a non-default
+ setting the 'mt', 'ms', or 'mc' capabilities to use a non-default
background color spills that color to the empty space at the end of
the last screen line in a match whose line spans multiple screen
lines. */
diff --git a/m4/pcre.m4 b/m4/pcre.m4
index 42d96f6d..b27f4672 100644
--- a/m4/pcre.m4
+++ b/m4/pcre.m4
@@ -43,5 +43,6 @@ AC_DEFUN([gl_FUNC_PCRE],
fi
AC_DEFINE_UNQUOTED([HAVE_LIBPCRE], [`test $use_pcre != yes; echo $?`],
- [Define to 1 if you have the `pcre' library (-lpcre).])
+ [Define to 1 if you have the Perl Compatible Regular Expressions
+ library (-lpcre).])
])
diff --git a/src/Makefile.am b/src/Makefile.am
index 4543f625..5cc8d597 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -32,7 +32,7 @@ libgrep_a_SOURCES = kwset.c dfa.c searchutils.c dfasearch.c kwsearch.c \
pcresearch.c main.c
# Sometimes, the expansion of $(LIBINTL) includes -lc which may
-# include modules defining variables like `optind', so libgreputils.a
+# include modules defining variables like 'optind', so libgreputils.a
# must precede $(LIBINTL) in order to ensure we use GNU getopt.
# But libgreputils.a must also follow $(LIBINTL), since libintl uses
# replacement functions defined in libgreputils.a.
diff --git a/src/dfa.c b/src/dfa.c
index 96d462f2..a7e263a4 100644
--- a/src/dfa.c
+++ b/src/dfa.c
@@ -39,7 +39,7 @@
- It's typically faster.
Posix 1003.2-1992 section 2.5.2.1 page 50 lines 1556-1558 says that
only '0' through '9' are digits. Prefer ISASCIIDIGIT to isdigit unless
- it's important to use the locale's definition of `digit' even when the
+ it's important to use the locale's definition of "digit" even when the
host does not conform to Posix. */
#define ISASCIIDIGIT(c) ((unsigned) (c) - '0' <= 9)
@@ -634,7 +634,7 @@ static charclass newline;
# define is_valid_unibyte_character(c) (! (MBS_SUPPORT && btowc (c) == WEOF))
#endif
-/* Return non-zero if C is a 'word-constituent' byte; zero otherwise. */
+/* Return non-zero if C is a "word-constituent" byte; zero otherwise. */
#define IS_WORD_CONSTITUENT(C) \
(is_valid_unibyte_character (C) && (isalnum (C) || (C) == '_'))
@@ -974,9 +974,9 @@ parse_bracket_exp (void)
char str[BRACKET_BUFFER_SIZE];
FETCH_WC (c1, wc1, _("unbalanced ["));
- /* If pattern contains `[[:', `[[.', or `[[='. */
+ /* If pattern contains '[[:', '[[.', or '[[='. */
if (c1 == ':'
- /* TODO: handle `[[.' and `[[=' also for MB_CUR_MAX == 1. */
+ /* TODO: handle '[[.' and '[[=' also for MB_CUR_MAX == 1. */
|| (MB_CUR_MAX > 1 && (c1 == '.' || c1 == '=')))
{
size_t len = 0;
@@ -3053,11 +3053,11 @@ charset_matched:
return match ? match_len : 0;
}
-/* Check each of `d->states[s].mbps.elem' can match or not. Then return the
- array which corresponds to `d->states[s].mbps.elem' and each element of
+/* Check each of 'd->states[s].mbps.elem' can match or not. Then return the
+ array which corresponds to 'd->states[s].mbps.elem' and each element of
the array contains the amount of the bytes with which the element can
match.
- `idx' is the index from the buf_begin, and it is the current position
+ 'idx' is the index from the buf_begin, and it is the current position
in the buffer.
Caller MUST free the array which this function return. */
static int *
@@ -3086,11 +3086,11 @@ check_matching_with_multibyte_ops (struct dfa *d, state_num s, size_t idx)
}
/* Consume a single character and enumerate all of the positions which can
- be next position from the state `s'.
- `match_lens' is the input. It can be NULL, but it can also be the output
+ be next position from the state 's'.
+ 'match_lens' is the input. It can be NULL, but it can also be the output
of check_matching_with_multibyte_ops() for optimization.
- `mbclen' and `pps' are the output. `mbclen' is the length of the
- character consumed, and `pps' is the set this function enumerate. */
+ 'mbclen' and 'pps' are the output. 'mbclen' is the length of the
+ character consumed, and 'pps' is the set this function enumerate. */
static status_transit_state
transit_state_consume_1char (struct dfa *d, state_num s,
unsigned char const **pp,
@@ -3106,15 +3106,15 @@ transit_state_consume_1char (struct dfa *d, state_num s,
to which p points. */
*mbclen = (mblen_buf[*pp - buf_begin] == 0) ? 1 : mblen_buf[*pp - buf_begin];
- /* Calculate the state which can be reached from the state `s' by
- consuming `*mbclen' single bytes from the buffer. */
+ /* Calculate the state which can be reached from the state 's' by
+ consuming '*mbclen' single bytes from the buffer. */
s1 = s;
for (k = 0; k < *mbclen; k++)
{
s2 = s1;
rs = transit_state_singlebyte (d, s2, (*pp)++, &s1);
}
- /* Copy the positions contained by `s1' to the set `pps'. */
+ /* Copy the positions contained by 's1' to the set 'pps'. */
copy (&(d->states[s1].elems), pps);
/* Check (input) match_lens, and initialize if it is NULL. */
@@ -3123,7 +3123,7 @@ transit_state_consume_1char (struct dfa *d, state_num s,
else
work_mbls = match_lens;
- /* Add all of the positions which can be reached from `s' by consuming
+ /* Add all of the positions which can be reached from 's' by consuming
a single character. */
for (i = 0; i < d->states[s].mbps.nelem; i++)
{
@@ -3190,10 +3190,10 @@ transit_state (struct dfa *d, state_num s, unsigned char const **pp)
/* This state has some operators which can match a multibyte character. */
alloc_position_set (&follows, d->nleaves);
- /* `maxlen' may be longer than the length of a character, because it may
+ /* 'maxlen' may be longer than the length of a character, because it may
not be a character but a (multi character) collating element.
- We enumerate all of the positions which `s' can reach by consuming
- `maxlen' bytes. */
+ We enumerate all of the positions which 's' can reach by consuming
+ 'maxlen' bytes. */
transit_state_consume_1char (d, s, pp, match_lens, &mbclen, &follows);
wc = inputwcs[*pp - mbclen - buf_begin];
diff --git a/src/dosbuf.c b/src/dosbuf.c
index bcbef162..fd3749b2 100644
--- a/src/dosbuf.c
+++ b/src/dosbuf.c
@@ -175,7 +175,7 @@ dossified_pos (off_t byteno)
/* Optimization: usually the file will be scanned sequentially.
So in most cases, this byte position will be found in the
- table near the previous one, as recorded in `out_map_idx'. */
+ table near the previous one, as recorded in 'out_map_idx'. */
pos_lo = dos_pos_map[out_map_idx-1].pos;
pos_hi = dos_pos_map[out_map_idx].pos;
diff --git a/src/main.c b/src/main.c
index b91a0420..bc9177e2 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1533,15 +1533,15 @@ Output control:\n\
-o, --only-matching show only the part of a line matching PATTERN\n\
-q, --quiet, --silent suppress all normal output\n\
--binary-files=TYPE assume that binary files are TYPE;\n\
- TYPE is `binary', `text', or `without-match'\n\
+ TYPE is 'binary', 'text', or 'without-match'\n\
-a, --text equivalent to --binary-files=text\n\
"));
printf (_("\
-I equivalent to --binary-files=without-match\n\
-d, --directories=ACTION how to handle directories;\n\
- ACTION is `read', `recurse', or `skip'\n\
+ ACTION is 'read', 'recurse', or 'skip'\n\
-D, --devices=ACTION how to handle devices, FIFOs and sockets;\n\
- ACTION is `read' or `skip'\n\
+ ACTION is 'read' or 'skip'\n\
-r, --recursive like --directories=recurse\n\
-R, --dereference-recursive likewise, but follow all symlinks\n\
"));
@@ -1568,7 +1568,7 @@ Context control:\n\
-NUM same as --context=NUM\n\
--color[=WHEN],\n\
--colour[=WHEN] use markers to highlight the matching strings;\n\
- WHEN is `always', `never', or `auto'\n\
+ WHEN is 'always', 'never', or 'auto'\n\
-U, --binary do not strip CR characters at EOL (MSDOS/Windows)\n\
-u, --unix-byte-offsets report offsets as if CRs were not there\n\
(MSDOS/Windows)\n\
diff --git a/tests/backref b/tests/backref
index d8c75be2..bd7cd025 100755
--- a/tests/backref
+++ b/tests/backref
@@ -18,8 +18,8 @@ if test $? -ne 0 ; then
failures=1
fi
-# hit hard with the `Bond' tests
-# For now, remove the `?' in the last parentheses, so that new glibc can do it. --Stepan
+# hit hard with the 'Bond' tests
+# For now, remove the '?' in the last parentheses, so that new glibc can do it. --Stepan
echo "civic" | grep -E -e '^(.?)(.?)(.?)(.?)(.?)(.?)(.?)(.?)(.).?\9\8\7\6\5\4\3\2\1$' > /dev/null 2>&1
if test $? -ne 0 ; then
echo "Options: Bond, test #2 failed"
diff --git a/tests/help-version b/tests/help-version
index b12e3dc9..65ab3e22 100755
--- a/tests/help-version
+++ b/tests/help-version
@@ -74,7 +74,7 @@ test "x$v" = "x$VERSION" \
for lang in C fr da; do
for i in $built_programs; do
- # Skip `test'; it doesn't accept --help or --version.
+ # Skip 'test'; it doesn't accept --help or --version.
test $i = test && continue;
# false fails even when invoked with --help or --version.
@@ -84,7 +84,7 @@ for lang in C fr da; do
continue
fi
- # The just-built install executable is always named `ginstall'.
+ # The just-built install executable is always named 'ginstall'.
test $i = install && i=ginstall
# Make sure they exit successfully, under normal conditions.
@@ -95,7 +95,7 @@ for lang in C fr da; do
grep "$PACKAGE_BUGREPORT" h-$i > /dev/null || fail=1
rm -f h-$i
- # Make sure they fail upon `disk full' error.
+ # Make sure they fail upon 'disk full' error.
if test -w /dev/full && test -c /dev/full; then
env $i --help >/dev/full 2>/dev/null && fail=1
env $i --version >/dev/full 2>/dev/null && fail=1
@@ -107,7 +107,7 @@ for lang in C fr da; do
: # ok
else
fail=1
- echo "*** $i: bad exit status \`$status' (expected $expected)," 1>&2
+ echo "*** $i: bad exit status '$status' (expected $expected)," 1>&2
echo " with --help or --version output redirected to /dev/full" 1>&2
fi
fi
@@ -139,7 +139,7 @@ chown_setup () { args=--version; }
mkfifo_setup () { args=--version; }
mknod_setup () { args=--version; }
# Punt on uptime, since it fails (e.g., failing to get boot time)
-# on some systems, and we shouldn't let that stop `make check'.
+# on some systems, and we shouldn't let that stop 'make check'.
uptime_setup () { args=--version; }
# Create a file in the current directory, not in $TMPDIR.
@@ -197,7 +197,7 @@ basename_setup () { args=$tmp_in; }
dirname_setup () { args=$tmp_in; }
expr_setup () { args=foo; }
-# Punt, in case GNU `id' hasn't been installed yet.
+# Punt, in case GNU 'id' hasn't been installed yet.
groups_setup () { args=--version; }
pathchk_setup () { args=$tmp_in; }
diff --git a/tests/tests b/tests/tests
index 6f2545f0..244e5c81 100644
--- a/tests/tests
+++ b/tests/tests
@@ -19,8 +19,8 @@
# no match for that one. In both the fourth and fifth fields, a (sub)field
# starting with @ indicates that the (sub)expression is expected to match
# a null string followed by the stuff after the @; this provides a way to
-# test where null strings match. The character `N' in REs and strings
-# is newline, `S' is space, `T' is tab, `Z' is NUL.
+# test where null strings match. The character 'N' in REs and strings
+# is newline, 'S' is space, 'T' is tab, 'Z' is NUL.
#
# The full list of flags:
# - placeholder, does nothing