Sequoia McDowell wrote: > The term "file name" occurs about 7 times. I was trying to figure out > how to suppress file names from output, but couldn't find the switch. > After searching online, I found that it was --no-filename, which is > described as "Suppress the prefixing of **filename**s on output when > multiple files are searched," (emphasis added). The inconsistent > style between "file name" and "filename" made it harder to find the > switch. Perhaps you'd consider picking either "file name" or > "filename" and using one consistently at least within a single page?
Thanks for spotting that. There were a couple other uses, nearby. I've just made these changes: >From 72ad859d857dd8162078305dc4f8543650141998 Mon Sep 17 00:00:00 2001 From: Jim Meyering <[email protected]> Date: Wed, 7 Sep 2011 23:41:22 +0200 Subject: [PATCH] doc: use "file name" consistently in grep's --help output * src/main.c (usage): Use "file name", not "filename" in descriptions of --with-filename (-H), --no-filename (-h) and --label=LABEL. Suggested by Sequoia McDowell. bug: requires ru_RU.KOI8-R". [bug introduced in grep-2.9] --- src/main.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.c b/src/main.c index 2cdf82f..c70156f 100644 --- a/src/main.c +++ b/src/main.c @@ -1442,9 +1442,9 @@ Output control:\n\ -b, --byte-offset print the byte offset with output lines\n\ -n, --line-number print line number with output lines\n\ --line-buffered flush output on every line\n\ - -H, --with-filename print the filename for each match\n\ - -h, --no-filename suppress the prefixing filename on output\n\ - --label=LABEL print LABEL as filename for standard input\n\ + -H, --with-filename print the file name for each match\n\ + -h, --no-filename suppress the file name prefix on output\n\ + --label=LABEL use LABEL as the standard input file name prefix\n\ ")); printf (_("\ -o, --only-matching show only the part of a line matching PATTERN\n\ -- 1.7.7.rc0.362.g5a14
