From 4a7487d99ae7ce07f85b29f444ebde6939317f0e Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Thu, 15 Feb 2018 11:56:27 +1300 Subject: [PATCH] doc: small improvements * doc/sed.texi: s/only accepts/accepts only/. (BRE vs ERE): Tweak ERE and BRE definitions, and convert a passive-voice sentence to active voice. Insert a comma. --- doc/sed.texi | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/doc/sed.texi b/doc/sed.texi index 38b4eda..b0469a7 100644 --- a/doc/sed.texi +++ b/doc/sed.texi @@ -1025,7 +1025,7 @@ $ seq 3 | sed 2q 2 @end example -This command only accepts a single address. +This command accepts only one address. Note that the current pattern space is printed if auto-print is not disabled with the @option{-n} options. The ability to return an exit code from the @command{sed} script is a @value{SSED} extension. @@ -1648,7 +1648,7 @@ Print out the file name of the current input file (with a trailing newline). @item Q address@hidden -This command only accepts a single address. +This command accepts only one address. @findex Q (silent Quit) command @cindex @value{SSEDEXT}, quitting silently @@ -2499,12 +2499,12 @@ characters in regular expressions. @section Basic (BRE) and extended (ERE) regular expression Basic and extended regular expressions are two variations on the -syntax of the specified pattern. Basic Regular Expression (BRE) is the -default in @command{sed} (and similarly in @command{grep}). Extended -Regular Expression syntax (ERE) is activated by using the @option{-r} -or @option{-E} options (and similarly, @command{grep -E}). +syntax of the specified pattern. Basic Regular Expression (BRE) syntax is the +default in @command{sed} (and similarly in @command{grep}). +Use the POSIX-specified @option{-E} option (@option{-r}, address@hidden) to enable Extended Regular Expression (ERE) syntax. -In @value{SSED} the only difference between basic and extended regular +In @value{SSED}, the only difference between basic and extended regular expressions is in the behavior of a few special characters: @samp{?}, @samp{+}, parentheses, braces (@address@hidden@}}), and @samp{|}. -- 2.13.5