diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | doc/sed-in.texi | 10 |
2 files changed, 12 insertions, 3 deletions
@@ -1,3 +1,8 @@ +2012-07-25 Paolo Bonzini <bonzini@gnu.org> + + * doc/sed-in.texi: Document difference between "e" and "r" + commands. + 2012-04-29 Jim Hill <gjthill@gmail.com> * Makefile.am (noinst_DATA, dist-hook): build failed after git diff --git a/doc/sed-in.texi b/doc/sed-in.texi index 4f6f864..2b4d83a 100644 --- a/doc/sed-in.texi +++ b/doc/sed-in.texi @@ -1441,13 +1441,17 @@ replaces the pattern space with the output; a trailing newline is suppressed. If a parameter is specified, instead, the @code{e} command -interprets it as a command and sends its output to the output stream -(like @code{r} does). The command can run across multiple -lines, all but the last ending with a back-slash. +interprets it as a command and sends its output to the output stream. +The command can run across multiple lines, all but the last ending with +a back-slash. In both cases, the results are undefined if the command to be executed contains a @sc{nul} character. +Note that, unlike the @code{r} command, the output of the command will +be printed immediately; the @code{r} command instead delays the output +to the end of the current cycle. + @item F @findex F (File name) command @cindex Printing file name |